コード例 #1
0
ファイル: Predator.cs プロジェクト: bethge/GalaticChaos
        public Predator(Vector2 initialPosition, Allegiance allegiance)
            : base(initialPosition, allegiance)
        {
            Health = GlobalValues.GetInstance().PredatorHealth;

              mMovement = new FreeMovement(this);
              mSpaceshipAttackBehaviour = new SpaceshipAttackBehaviour(this);
              mMinionAttackBehaviour = new MinionAttackBehaviour(this);
              mVisibility = new Visibility(this);
        }
コード例 #2
0
ファイル: DeathStar.cs プロジェクト: bethge/GalaticChaos
 public DeathStar(Vector2 initialPosition, Allegiance allegiance, int minionCount)
     : base(initialPosition, allegiance)
 {
     MinionCount = minionCount;
       mMovementMode = false;
       Shield = 0;
       AttackTimer = 0;
       mSpaceshipAttackMode = false;
       mMovementMode = false;
       mPlanetAttackMode = false;
       mSpaceshipAttackBehaviour = new SpaceshipAttackBehaviour(this);
       mPlanetAttackBehaviour = new PlanetAttackBehaviour(this, AttackSpeedPlanet);
       mMovement = new FreeMovement(this);
       mVisibility = new Visibility(this);
 }