Exemple #1
0
 public RoshiStateMachineHelper(EnemyRoshi roshi, RoshiStateMachine roshiState)
 {
     this.game       = roshi.game;
     this.roshi      = roshi;
     this.roshiState = roshiState;
     spriteFactory   = new RoshiSpriteFactory(game);
 }
Exemple #2
0
 public EnemyRoshi(ZeldaGame game, Vector2 spawnLocation)
 {
     this.game          = game;
     this.spriteFactory = new RoshiSpriteFactory(game);
     this.mySprite      = this.spriteFactory.SpawnRoshi();
     drawLocation       = spawnLocation;
     this.spawnLocation = spawnLocation;
     myState            = new RoshiStateMachine(this);
     this.spriteScalar  = game.util.spriteScalar;
     game.collisionManager.collisionEntities.Add(this, CollisionRectangle());
     health = health * game.util.difficultyMult;
 }