C# Class World.GameActors.GameObjects.Avatar

Inheritance: Character, IAvatar
Afficher le fichier Open project: GoodAI/BrainSimulator Class Usage Examples

Méthodes publiques

Méthode Description
AddToInventory ( IPickableGameActor item ) : bool
Avatar ( string tilesetName, int tileId, string name, int id, System.Vector2 initialPosition, System.Vector2 size, float direction ) : System.Drawing
RemoveFromInventory ( ) : IPickableGameActor
ResetControls ( ) : void
Update ( IAtlas atlas, ITilesetTable table ) : void

Private Methods

Méthode Description
BalanceTemperature ( float temperatureAround, float energyDiff ) : void
BoundValue ( float &value, float min, float max ) : void
EatFruit ( GameActorPosition applePosition ) : void
GetInteractableObjectsInFrontOf ( IAtlas atlas ) : List
GetInteractableTilesInFrontOf ( IAtlas atlas ) : List
InteractWithAllInteractablesInFrontOf ( IAtlas atlas, ITilesetTable table ) : void
LogAvatarStatus ( IAtlas atlas, float temperatureAround ) : void
LoseEnergy ( ) : void
LoseRest ( ) : void
PerformLayDown ( IAtlas atlas, ITilesetTable tilesetTable ) : bool
PerformPickup ( IAtlas atlas, ITilesetTable tilesetTable ) : bool
RemoveSpeed ( GameActorPosition target ) : void

Method Details

AddToInventory() public méthode

public AddToInventory ( IPickableGameActor item ) : bool
item IPickableGameActor
Résultat bool

Avatar() public méthode

public Avatar ( string tilesetName, int tileId, string name, int id, System.Vector2 initialPosition, System.Vector2 size, float direction ) : System.Drawing
tilesetName string
tileId int
name string
id int
initialPosition System.Vector2
size System.Vector2
direction float
Résultat System.Drawing

RemoveFromInventory() public méthode

public RemoveFromInventory ( ) : IPickableGameActor
Résultat IPickableGameActor

ResetControls() public méthode

public ResetControls ( ) : void
Résultat void

Update() public méthode

public Update ( IAtlas atlas, ITilesetTable table ) : void
atlas IAtlas
table ITilesetTable
Résultat void