|
Force
Class header file: BWAPI/Force.h A "Force" is another name for "Team". See the FAQ on why this term is used instead. The Force class is used to get information about each force in the match, such as the name of the force and the set of players in the force. In team-based GameTypes, such as GameTypes::Team_Melee, each Force object will correspond to a different team. In non team-based matches, though, it is common for all players to be contained in the same Force. Methods: getNamestd::string getName() const; Returns the name of the force. getPlayersstd::set< Player* > getPlayers() const; Returns the set of players in the force. For team-based GameTypes, this will return the set of players on this team. | |
► Sign in to add a comment
A Force object represents a force, but what is a "force" in BWAPI? Is it the set of players on a team?
Yes