예제 #1
0
 public SpriteSource Map(MapDisplayPiece piece, bool white)
 {
     if (white)
     {
         if (_whiteMapPieces.ContainsKey(piece))
         {
             return(_whiteMapPieces[piece]);
         }
         return(Blank);
     }
     if (_blueMapPieces.ContainsKey(piece))
     {
         return(_blueMapPieces[piece]);
     }
     return(Blank);
 }
예제 #2
0
 public void RemovePill()
 {
     PillEaten = true;
     Piece     = MapDisplayPiece.Blank;
 }
예제 #3
0
 public MapCellDetail(Map map, int x, int y, CellType cellType, bool isThroughSpace, MapDisplayPiece mapDisplayPiece)
 {
     _map           = map;
     Y              = y;
     X              = x;
     CellType       = cellType;
     Piece          = mapDisplayPiece;
     IsThroughSpace = isThroughSpace;
 }