Ejemplo n.º 1
0
 public Fleet(GameState gs,
     Player owner,
     int shipCount,
     int sourcePlanet,
     int destinationPlanet,
     int totalTripLength,
     int turnsRemaining)
 {
     m_Owner = owner;
     m_ShipCount = shipCount;
     m_SourcePlanet = gs.Planets[sourcePlanet];
     m_DestinationPlanet = gs.Planets[destinationPlanet];
     m_TotalTripLength = totalTripLength;
     m_TurnsRemaining = turnsRemaining;
 }
Ejemplo n.º 2
0
 public Planet(
     int id,
     Player owner,
     int shipCount,
     int growthRate,
     double x,
     double y
     )
 {
     m_Id = id;
     m_Owner = owner;
     m_ShipCount = shipCount;
     m_GrowthRate = growthRate;
     m_X = x;
     m_Y = y;
 }