Beispiel #1
0
 public ShipGroup(Textures.Ship ship, IList <Grid.DirectionalCell> path, int lenght, int life, Point starterPosition)
 {
     _ship   = ship;
     _path   = path;
     _lenght = lenght;
     _ships  = new List <Ship>(_lenght);
     for (int i = 0; i < _lenght; i++)
     {
         _ships.Add(new Ship(life, new Vector2(starterPosition.X - ((i + 1) * 0.5f), starterPosition.Y), 0.01f));
     }
 }
Beispiel #2
0
 public void LaunchWave(Textures.Ship ship)
 {
     _ships = new ShipGroup(ship, _path.ToList(), 10, 10, new Point(Cell.Start.X, Cell.Start.Y));
 }