Beispiel #1
0
 public Engine(ConsoleRenderer render, PlayerShip player , List<IWorldObject> objects , Random randomGenerator)
 {
     this.render = render;
     worldObject = objects;
     this.player = player;
     this.randomGenerator = randomGenerator;
 }
Beispiel #2
0
 public int Getshipresourceid(PlayerShip ship)
 {
     switch (ship.GetShipclass())
     {
     case "akira":
         shipclassid = Resource.Drawable.akira;
         break;
     }
     return(shipclassid);
 }
Beispiel #3
0
        public string Underfire(int damage)
        {
            string combatlog = enemyship.ChangeHealth(damage);

            if (enemyship.GetHealth() <= 0)
            {
                enemyship = null;
                enemy     = false;
                return(combatlog);
            }
            NextTurn();
            return(combatlog);
        }