public MoveActionHandler(Move action) { _action = action; }
public GameContext AddPlayer(Player player) { var offset = Players.Count * GameDimensions.SectorSize; Players.Add(player); var startingSystem = Systems[offset + GameDimensions.StartingPlanetarySystem]; var action = new Move {DestinationPlanetId = startingSystem.SystemNumber, Starship = new ConstructionStarship(player)}; var actionHandler = new MoveActionHandler(action); actionHandler.Execute(player, this); return this; }