libspades
Ace of Spades library
CTFStateData Struct Reference

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.
 

Detailed Description

State data for the Capture-the-Flag gamemode.

Field Documentation

◆ heldIntels

uint8_t CTFStateData::heldIntels

Which teams have a player holding their intel.

Possible values (ORed together) are:

  • First team: 1,
  • Second team: 2

◆ team1Intel

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

◆ team2Intel

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


The documentation for this struct was generated from the following file: