public EnObsTurnInfo(ObservedTurnInfo ti) { Turn = ti.Turn; GameState = ti.GameState.ToString(); PlayerStates = ti.PlayerStates.Select(p => new EnPlayerState(p)).ToArray(); MapChanges = ti.MapChanges.Select(p => new EnMapChange(p)).ToArray(); TecmanPosition = new EnPoint(ti.TecmanPosition); GhostPositions = ti.GhostPositions.Select(p => new EnPoint(p)).ToArray(); }
public EnMapChange(MapChange mc) { Position = new EnPoint(mc.Position); Value = EnMapData.BuildTile(mc.Value).ToString(); }