public ApiJoinGameInfo(long maxTicks, ApiPlayerRole playerRole, ApiShipConstraints shipConstraints, ApiPlanet planet, ApiShipMatter defenderShip) { MaxTicks = maxTicks; PlayerRole = playerRole; ShipConstraints = shipConstraints; Planet = planet; DefenderShip = defenderShip; }
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; }
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; }
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; }
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)); }
public ApiSplitCommand(ApiCommandType commandType, long shipId, ApiShipMatter newShipMatter) : base(commandType, shipId) { NewShipMatter = newShipMatter; }
public ApiSplitAppliedCommand(ApiCommandType commandType, ApiShipMatter newShip) : base(commandType) { NewShip = newShip; }