public IntVector2 AddShipToFreePosition(Ship ship) { Ships.Add(ship); var coordinates = PlayerArena.AddShipToFreePosition(ship); return(coordinates); }
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; }
public void AddShipToPosition(Ship ship, IntVector2 position) { Ships.Add(ship); PlayerArena.AddShipToPosition(ship, position); }
public Ship ShipReposition(Ship ship, int newY, int newX) { return(PlayerArena.ShipReposition(ship, newY, newX)); }