Exemplo n.º 1
0
 public bool LobbableTile(Tile t, Tile p)
 {
     return (t.entities.Count == 0 ||
         (t.GetBottomChar() != null) ||
         (t.entities.FindIndex(e => e.liftable) == -1));
 }
Exemplo n.º 2
0
 //can walk to this tile by passing through other tiles
 public bool TraversibleTile(Tile t, Tile p)
 {
     if (!t.traversible) return false;
     if (t.entities.Count == 0) return true;
     DungeonCharacter dchar = t.GetBottomChar();
     if (dchar == null) return false;
     if (dchar.alignment != alignment) return false;
     return true;
 }