예제 #1
0
        public IntVector2 AddShipToFreePosition(Ship ship)
        {
            Ships.Add(ship);
            var coordinates = PlayerArena.AddShipToFreePosition(ship);

            return(coordinates);
        }
예제 #2
0
 public void Set(
     int hp,
     int money,
     int xp,
     int level,
     List <Ship> spaceShips,
     ShipPart[] boughtComponents,
     PlayerArena arena,
     ShipPart[] shop,
     bool shopLock
     )
 {
     Hp          = hp;
     Money       = money;
     Xp          = xp;
     Lvl         = level;
     Ships       = spaceShips;
     Bag         = boughtComponents;
     PlayerArena = arena;
     Shop        = shop;
 }
예제 #3
0
 public void AddShipToPosition(Ship ship, IntVector2 position)
 {
     Ships.Add(ship);
     PlayerArena.AddShipToPosition(ship, position);
 }
예제 #4
0
 public Ship ShipReposition(Ship ship, int newY, int newX)
 {
     return(PlayerArena.ShipReposition(ship, newY, newX));
 }