MCPcopy Create free account
hub / github.com/TurningWheel/Barony / commandCanBeSentToAll

Function commandCanBeSentToAll

src/interface/interface.cpp:2047–2057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2045}
2046
2047bool commandCanBeSentToAll(int optionSelected)
2048{
2049 if ( optionSelected != ALLY_CMD_MOVETO_CONFIRM
2050 && optionSelected != ALLY_CMD_ATTACK_CONFIRM
2051 && optionSelected != ALLY_CMD_FOLLOW
2052 && optionSelected != ALLY_CMD_DEFEND )
2053 {
2054 return false;
2055 }
2056 return true;
2057}
2058
2059std::vector<Entity*> getAllOtherFollowersForSendAllCommand(const int gui_player, Entity* followerToCommand, Monster followerType, int optionSelected)
2060{

Callers 2

drawFollowerMenuMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected