C# Класс Engine.Objects.Person

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CallScript ( PersonScripts script ) : void
CheckObstructions ( Vector2f &position, Line line ) : bool
CheckObstructions ( Vector2f &pos, Person other ) : bool
CheckObstructions ( Vector2f &pos, Vector2f &tileOffset, Tile tile ) : bool
ClearComands ( ) : void
Draw ( ) : void
GetBounds ( ) : Line[]
IsObstructedAt ( Vector2f pos ) : bool
IsQueueEmpty ( ) : bool
Person ( string name, SpritesetInstance spriteset, bool destroy ) : System
QueueCommand ( int command, bool imm ) : void
QueueScript ( object script, bool imm ) : void
SetScript ( PersonScripts script, object instance ) : void
UpdateCommandQueue ( ) : void

Приватные методы

Метод Описание
GetDirection ( string name ) : ObjectInstance
GetDirectionAt ( int index ) : string

Описание методов

CallScript() публичный Метод

public CallScript ( PersonScripts script ) : void
script PersonScripts
Результат void

CheckObstructions() публичный Метод

public CheckObstructions ( Vector2f &position, Line line ) : bool
position Vector2f
line Line
Результат bool

CheckObstructions() публичный Метод

public CheckObstructions ( Vector2f &pos, Person other ) : bool
pos Vector2f
other Person
Результат bool

CheckObstructions() публичный Метод

public CheckObstructions ( Vector2f &pos, Vector2f &tileOffset, Tile tile ) : bool
pos Vector2f
tileOffset Vector2f
tile Tile
Результат bool

ClearComands() публичный Метод

public ClearComands ( ) : void
Результат void

Draw() публичный Метод

public Draw ( ) : void
Результат void

GetBounds() публичный Метод

public GetBounds ( ) : Line[]
Результат Line[]

IsObstructedAt() публичный Метод

public IsObstructedAt ( Vector2f pos ) : bool
pos Vector2f
Результат bool

IsQueueEmpty() публичный Метод

public IsQueueEmpty ( ) : bool
Результат bool

Person() публичный Метод

public Person ( string name, SpritesetInstance spriteset, bool destroy ) : System
name string
spriteset SpritesetInstance
destroy bool
Результат System

QueueCommand() публичный Метод

public QueueCommand ( int command, bool imm ) : void
command int
imm bool
Результат void

QueueScript() публичный Метод

public QueueScript ( object script, bool imm ) : void
script object
imm bool
Результат void

SetScript() публичный Метод

public SetScript ( PersonScripts script, object instance ) : void
script PersonScripts
instance object
Результат void

UpdateCommandQueue() публичный Метод

public UpdateCommandQueue ( ) : void
Результат void