C# Class Engine.Objects.Person

Exibir arquivo Open project: Radnen/sphere-sfml Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetDirection ( string name ) : ObjectInstance
GetDirectionAt ( int index ) : string

Method Details

CallScript() public method

public CallScript ( PersonScripts script ) : void
script PersonScripts
return void

CheckObstructions() public method

public CheckObstructions ( Vector2f &position, Line line ) : bool
position Vector2f
line Line
return bool

CheckObstructions() public method

public CheckObstructions ( Vector2f &pos, Person other ) : bool
pos Vector2f
other Person
return bool

CheckObstructions() public method

public CheckObstructions ( Vector2f &pos, Vector2f &tileOffset, Tile tile ) : bool
pos Vector2f
tileOffset Vector2f
tile Tile
return bool

ClearComands() public method

public ClearComands ( ) : void
return void

Draw() public method

public Draw ( ) : void
return void

GetBounds() public method

public GetBounds ( ) : Line[]
return Line[]

IsObstructedAt() public method

public IsObstructedAt ( Vector2f pos ) : bool
pos Vector2f
return bool

IsQueueEmpty() public method

public IsQueueEmpty ( ) : bool
return bool

Person() public method

public Person ( string name, SpritesetInstance spriteset, bool destroy ) : System
name string
spriteset SpritesetInstance
destroy bool
return System

QueueCommand() public method

public QueueCommand ( int command, bool imm ) : void
command int
imm bool
return void

QueueScript() public method

public QueueScript ( object script, bool imm ) : void
script object
imm bool
return void

SetScript() public method

public SetScript ( PersonScripts script, object instance ) : void
script PersonScripts
instance object
return void

UpdateCommandQueue() public method

public UpdateCommandQueue ( ) : void
return void