private EnemyTurret(Vector2 aCoordinate)
        {
            //    FilePathToGraphic = theEnemyManager.FilePathToGraphic;

            FilePathToGraphic = "Turret_Base";
            //  Function = aFunction;  // Added functionality from Enemy manager!
            //   IsCollidable = theEnemyManager.IsCollidable;

            mWorldPosition = aCoordinate;

            mHostileStateMachine = new HostileStateMachine(this);

            theEnemyManager.Add(this);

            CollideWithEnemy();
            CollideWithTile();
        }
Пример #2
0
        private Enemy(Vector2 aCoordinate)
        {
            FilePathToGraphic = theEnemyManager.FilePathToGraphic;
            IsCollidable = theEnemyManager.IsCollidable;
            IsCollidable = true;

            mWorldPosition = aCoordinate;

            mHostileStateMachine = new HostileStateMachine(this);

            theEnemyManager.Add(this);

            mManager = theEnemyManager;

            CollideWithEnemy();
            CollideWithTile();
        }
 public HostileAttack(HostileStateMachine aHostileStateMachine)
 {
     mHostileStateMachine = aHostileStateMachine;
     mEnemy = aHostileStateMachine.Enemy;
     mPlayer = (Player)thePlayerManager.List[0];
 }