My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Force  
Updated Apr 14, 2011 by AHein...@gmail.com

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:

getName

std::string getName() const;

Returns the name of the force.

getPlayers

std::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.

Comment by allyourc...@gmail.com, Jan 31, 2010

A Force object represents a force, but what is a "force" in BWAPI? Is it the set of players on a team?

Comment by project member AHein...@gmail.com, Apr 14, 2011

Yes


Sign in to add a comment
Powered by Google Project Hosting