Exemplo n.º 1
0
 public ApiJoinGameInfo(long maxTicks, ApiPlayerRole playerRole, ApiShipConstraints shipConstraints, ApiPlanet planet, ApiShipMatter defenderShip)
 {
     MaxTicks        = maxTicks;
     PlayerRole      = playerRole;
     ShipConstraints = shipConstraints;
     Planet          = planet;
     DefenderShip    = defenderShip;
 }
Exemplo n.º 2
0
 public GameManagementState(GameManagementStatus status, long playerKey, ApiShipMatter shipMatter, ApiCreateGameResponse creationResponse, ApiGameResponse gameResponse, ApiInfoResponse infoResponse, V managementMenuPosition, long countdownTicks)
 {
     Status                 = status;
     PlayerKey              = playerKey;
     ShipMatter             = shipMatter;
     CreationResponse       = creationResponse;
     GameResponse           = gameResponse;
     InfoResponse           = infoResponse;
     ManagementMenuPosition = managementMenuPosition;
     CountdownTicks         = countdownTicks;
 }
Exemplo n.º 3
0
 public ApiShip(ApiPlayerRole role, long shipId, V position, V velocity, ApiShipMatter matter, long temperature, long criticalTemperature, long maxFuelBurnSpeed)
 {
     Role                = role;
     ShipId              = shipId;
     Position            = position;
     Velocity            = velocity;
     Matter              = matter;
     Temperature         = temperature;
     CriticalTemperature = criticalTemperature;
     MaxFuelBurnSpeed    = maxFuelBurnSpeed;
 }
Exemplo n.º 4
0
 public PlanetWarsState(long level, PlanetWarsStatus status, long playerKey, ApiPlayerRole myRole, long totalScore, ApiPlayerStatus gameResultStatus, ApiShip selectedShip, IEnumerable <ApiShipCommand> commands, ApiCommandType editingCommand, ApiUniverse universe, ApiJoinGameInfo gameJoinInfo, ApiGameLog gameLog, ApiShipMatter shipMatter)
 {
     Level            = level;
     Status           = status;
     PlayerKey        = playerKey;
     MyRole           = myRole;
     TotalScore       = totalScore;
     GameResultStatus = gameResultStatus;
     SelectedShip     = selectedShip;
     Commands         = commands;
     EditingCommand   = editingCommand;
     Universe         = universe;
     GameJoinInfo     = gameJoinInfo;
     GameLog          = gameLog;
     ShipMatter       = shipMatter;
 }
Exemplo n.º 5
0
 public static PlanetWarsState InitialForStartGame(long playerKey, ApiJoinGameInfo joinInfo, ApiShipMatter matter)
 {
     return(new PlanetWarsState(
                level: 0,
                PlanetWarsStatus.InitialForStartGame,
                playerKey,
                joinInfo.PlayerRole,
                totalScore: 0,
                ApiPlayerStatus.ReadyToGo,
                selectedShip: null,
                commands: null,
                ApiCommandType.None,
                universe: null,
                joinInfo,
                gameLog: null,
                matter));
 }
Exemplo n.º 6
0
 public ApiSplitCommand(ApiCommandType commandType, long shipId, ApiShipMatter newShipMatter)
     : base(commandType, shipId)
 {
     NewShipMatter = newShipMatter;
 }
Exemplo n.º 7
0
 public ApiSplitAppliedCommand(ApiCommandType commandType, ApiShipMatter newShip)
     : base(commandType)
 {
     NewShip = newShip;
 }