Ejemplo n.º 1
0
 static Unit_Passable tile_unit_passability(Game_Unit unit, Vector2 loc, Map_Object unit_here)
 {
     if (unit.is_passable_team(unit_here))
     {
         return(Unit_Passable.PassableAlly);
     }
     else
     {
         if (unit.is_evented_move)
         {
             return(Unit_Passable.PassableFullMoveEnemy);
         }
         else if (unit.can_pass_enemies())
         {
             return(Unit_Passable.PassableAlly);
         }
         if (Ignore_Units)
         {
             return(Unit_Passable.PassableEnemy);
         }
         return(Unit_Passable.Blocked);
     }
 }