Home
last modified time | relevance | path

Searched refs:on_ship (Results 1 – 6 of 6) sorted by relevance

/dports/games/lordsawar/lordsawar-0.3.2/src/
H A DPathCalculator.cpp107 …boat_reset_moves(s->getMaxBoatMoves()), zigzag(zig), on_ship(stack->hasShip()), enemy_city_avoidan… in PathCalculator()
137 on_ship = stack->hasShip(); in PathCalculator()
152 on_ship = stack->hasShip(); in PathCalculator()
160 boat_reset_moves(p.boat_reset_moves), zigzag(p.zigzag), on_ship(p.on_ship), in PathCalculator()
201 if (!flying && load_or_unload(pos, next, on_ship) == true) in calcFinalMoves()
221 if (on_ship) in calcFinalMoves()
256 if (!flying && load_or_unload(pos, next, on_ship) == true) in calcMoves()
268 if (on_ship) in calcMoves()
H A DPathCalculator.h80 bool on_ship; variable
99 bool load_or_unload(Vector<int> src, Vector<int> dest, bool &on_ship);
H A Dstack.cpp126 bool Stack::isMovingToOrFromAShip(Vector<int> dest, bool &on_ship) const in isMovingToOrFromAShip()
144 (on_water && on_port && !to_water && on_ship) || in isMovingToOrFromAShip()
147 (on_bridge && !to_water && on_ship) || in isMovingToOrFromAShip()
149 on_ship == false) || in isMovingToOrFromAShip()
150 (!on_water && !to_water && on_ship == true)) in isMovingToOrFromAShip()
152 on_ship = !on_ship; in isMovingToOrFromAShip()
169 bool on_ship = hasShip(); in moveToDest() local
170 if (isMovingToOrFromAShip(dest, on_ship) == true) in moveToDest()
H A Dpath.h134 bool load_or_unload(Stack *s, Vector<int> src, Vector<int> dest, bool &on_ship);
H A Dstack.h422 bool isMovingToOrFromAShip(Vector<int> dest, bool &on_ship) const;
H A Dnetwork_player.cpp393 bool on_ship = stack->hasShip(); in decodeActionMove() local
394 if (stack->isMovingToOrFromAShip(action->getEndingPosition(), on_ship) == true) in decodeActionMove()