MCPcopy Create free account
hub / github.com/EasyRPG/Player / CanEmbarkShip

Method CanEmbarkShip

src/game_map.cpp:983–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983bool Game_Map::CanEmbarkShip(Game_Player& player, int x, int y) {
984 auto bit = GetPassableMask(player.GetX(), player.GetY(), x, y);
985 return IsPassableTile(&player, bit, player.GetX(), player.GetY());
986}
987
988bool Game_Map::CanDisembarkShip(Game_Player& player, int x, int y) {
989 if (!Game_Map::IsValid(x, y)) {

Callers

nothing calls this directly

Calls 3

GetPassableMaskFunction · 0.85
GetXMethod · 0.45
GetYMethod · 0.45

Tested by

no test coverage detected