Exemplo n.º 1
0
 public GameEntity pick(TileSystemComponent tsc, Point point)
 {
     foreach (TileCoord tile in tiles_)
     {
         if (tile.tileSystem_ == tsc)
         {
             if (tile.isWithin(point))
             {
                 return(tile.entity_);
             }
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 public override Component deepCopy(GameEntity entity)
 {
     TileSystemComponent c = new TileSystemComponent(entity);
     foreach (TileArea area in areas_)
     {
         c.areas_.Add(area.deepCopy(c));
     }
     return c;
 }