Resolve() public abstract method

Resolve implements default action implementation (where applicable)
public abstract Resolve ( GameActorPosition target, IAtlas atlas, ITilesetTable tilesetTable ) : void
target GameActorPosition Target of the action
atlas IAtlas
tilesetTable ITilesetTable
return void
コード例 #1
0
ファイル: Ball.cs プロジェクト: GoodAI/BrainSimulator
 public void PickUp(IAtlas atlas, GameAction gameAction, Vector2 position, ITilesetTable tilesetTable = null)
 {
     if (gameAction is PickUp || gameAction is LayDown)
     {
         gameAction.Resolve(new GameActorPosition(this, position, LayerType.Object), atlas, tilesetTable);
     }
 }
コード例 #2
0
ファイル: Fruit.cs プロジェクト: GoodAI/BrainSimulator
 public void ApplyGameAction(IAtlas atlas, GameAction gameAction, Vector2 position, ITilesetTable tilesetTable)
 {
     gameAction.Resolve(new GameActorPosition(this, position, LayerType.ObstacleInteractable), atlas, tilesetTable);
 }
コード例 #3
0
ファイル: KeyToDoor.cs プロジェクト: GoodAI/BrainSimulator
 public void PickUp(IAtlas atlas, GameAction gameAction, Vector2 position, ITilesetTable tilesetTable)
 {
     gameAction.Resolve(new GameActorPosition(this, position, LayerType.OnGroundInteractable), atlas, tilesetTable);
 }