public Tile(GameField gameField, Point position, TerrainType terrainType, int intParam = 0, Tile tileParam = null, FieldPlayer playerParam = null, Orientation orientation = Orientation.None) { this.position = position; this.terrainType = terrainType; this.gameField = gameField; this.intParam = intParam; this.tileParam = tileParam; this.playerParam = playerParam; this.orientation = orientation; }
public GameField(GameParameters gameParams, Random rnd) { ActionHistories = new List <TurnInfo> [gameParams.PlayerCount]; players = new FieldPlayer[gameParams.PlayerCount]; for (int i = 0; i < gameParams.PlayerCount; ++i) { ActionHistories[i] = new List <TurnInfo> { new TurnInfo() }; players[i] = new FieldPlayer(maxBulletCount, startHomeBulletCount); } this.gameParams = gameParams; this.rnd = rnd; }