#include <Participant.h>
Public Member Functions | |
| CParticipant () | |
| CParticipant. | |
| ~CParticipant () | |
| ~CParticipant | |
| void | SetDescription (CDescription desc) |
| SetDescription. | |
| CDescription | GetDescription () const |
| GetDescription. | |
| void | SetAI (char *path) |
| SetAI. | |
| void | SetHuman (char *name) |
| SetHuman. | |
| const PARTICIPANT_INFO & | GetParticipantInfo () |
| GetParticipantInfo. | |
| bool | AssignToResource (CResource *, bool bMobile) |
| AssignToResource. | |
| const CResource * | GetResource () const |
| GetResource. | |
| void | AddScore (real32 win, real32 lose, real32 draw) |
| AddScore. | |
| void | SetScore (real32 win, real32 lose, real32 draw) |
| SetScore. | |
| void | GetScore (real32 &win, real32 &lose, real32 &draw) const |
| GetScore. | |
Description:
Limitations:
|
|
CParticipant. Description: Constructor initializes internal class attributes.
|
|
|
~CParticipant Description: Destructor included for maintenance purposes only.
|
|
||||||||||||||||
|
AddScore. Description: This function adds a score to the participant's previous score.
|
|
||||||||||||
|
AssignToResource. Description: Assigns a participant to a resource. This function will add the player to the resource object's participant list. The player, if immobile, cannot be be assigned a new resource. Human players are commonly immobile.
|
|
|
GetDescription. Description: Fetches the description of the participant.
|
|
|
GetParticipantInfo. Description: This function returns the participant's information.
|
|
|
GetResource. Description: This fuction returns the resource which the player was assigned.
|
|
||||||||||||||||
|
GetScore. Description: This function returns the participant's score.
|
|
|
SetAI. Description: Configures the participant as an AI.
|
|
|
SetDescription. Description: Associates a description with a participant.
|
|
|
SetHuman. Description: Configures the participant as a human player.
|
|
||||||||||||||||
|
SetScore. Description: Sets the player's score.
|