C# Class World.GameActors.GameObjects.Avatar

Inheritance: Character, IAvatar
Exibir arquivo Open project: GoodAI/BrainSimulator Class Usage Examples

Public Methods

Method 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

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

public AddToInventory ( IPickableGameActor item ) : bool
item IPickableGameActor
return bool

Avatar() public method

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
return System.Drawing

RemoveFromInventory() public method

public RemoveFromInventory ( ) : IPickableGameActor
return IPickableGameActor

ResetControls() public method

public ResetControls ( ) : void
return void

Update() public method

public Update ( IAtlas atlas, ITilesetTable table ) : void
atlas IAtlas
table ITilesetTable
return void