示例#1
0
 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();
 }
示例#2
0
 public EnMapChange(MapChange mc)
 {
     Position = new EnPoint(mc.Position);
     Value    = EnMapData.BuildTile(mc.Value).ToString();
 }