C# Class Engine.Objects.Person

Afficher le fichier Open project: Radnen/sphere-sfml Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetDirection ( string name ) : ObjectInstance
GetDirectionAt ( int index ) : string

Method Details

CallScript() public méthode

public CallScript ( PersonScripts script ) : void
script PersonScripts
Résultat void

CheckObstructions() public méthode

public CheckObstructions ( Vector2f &position, Line line ) : bool
position Vector2f
line Line
Résultat bool

CheckObstructions() public méthode

public CheckObstructions ( Vector2f &pos, Person other ) : bool
pos Vector2f
other Person
Résultat bool

CheckObstructions() public méthode

public CheckObstructions ( Vector2f &pos, Vector2f &tileOffset, Tile tile ) : bool
pos Vector2f
tileOffset Vector2f
tile Tile
Résultat bool

ClearComands() public méthode

public ClearComands ( ) : void
Résultat void

Draw() public méthode

public Draw ( ) : void
Résultat void

GetBounds() public méthode

public GetBounds ( ) : Line[]
Résultat Line[]

IsObstructedAt() public méthode

public IsObstructedAt ( Vector2f pos ) : bool
pos Vector2f
Résultat bool

IsQueueEmpty() public méthode

public IsQueueEmpty ( ) : bool
Résultat bool

Person() public méthode

public Person ( string name, SpritesetInstance spriteset, bool destroy ) : System
name string
spriteset SpritesetInstance
destroy bool
Résultat System

QueueCommand() public méthode

public QueueCommand ( int command, bool imm ) : void
command int
imm bool
Résultat void

QueueScript() public méthode

public QueueScript ( object script, bool imm ) : void
script object
imm bool
Résultat void

SetScript() public méthode

public SetScript ( PersonScripts script, object instance ) : void
script PersonScripts
instance object
Résultat void

UpdateCommandQueue() public méthode

public UpdateCommandQueue ( ) : void
Résultat void