Esempio n. 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);
 }
Esempio n. 2
0
 public void RemovePill()
 {
     PillEaten = true;
     Piece     = MapDisplayPiece.Blank;
 }
Esempio n. 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;
 }