![]() |
libspades
Ace of Spades library
|
State data for the Capture-the-Flag gamemode. More...
#include <protocol.h>
Data Fields | |
| uint8_t | team1Score |
| The score (captures) of the first team. | |
| uint8_t | team2Score |
| The score (captures) of the second team. | |
| uint8_t | captureLimit |
| The score that needs to be reached to finish the game. | |
| uint8_t | heldIntels |
| Which teams have a player holding their intel. | |
| union IntelLocation | team1Intel |
| The location of the first team's intel. | |
| union IntelLocation | team2Intel |
| The location of the second team's intel. | |
| Vector3Float | team1TentPosition |
| The position of the first team's tent. | |
| Vector3Float | team2TentPosition |
| The position of the second team's tent. | |
State data for the Capture-the-Flag gamemode.
| uint8_t CTFStateData::heldIntels |
Which teams have a player holding their intel.
Possible values (ORed together) are:
| union IntelLocation CTFStateData::team1Intel |
The location of the first team's intel.
Use value playerID if the team's bit in heldIntels is set, otherwise position
| union IntelLocation CTFStateData::team2Intel |
The location of the second team's intel.
Use value playerID if the team's bit in heldIntels is set, otherwise position