예제 #1
0
파일: Lob.cs 프로젝트: cindyxu/soulstrand
 public bool LobbableTile(Tile t, Tile p)
 {
     return (t.entities.Count == 0 ||
         (t.GetBottomChar() != null) ||
         (t.entities.FindIndex(e => e.liftable) == -1));
 }
예제 #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;
 }