SuperTuxKart
Public Member Functions | Public Attributes | List of all members
PeerVote Class Reference

A simple structure to store a vote from a client: track name, number of laps and reverse or not. More...

#include <peer_vote.hpp>

Public Member Functions

 PeerVote (const core::stringw &name, const std::string track, int laps, bool reverse)
 
 PeerVote (NetworkString &ns)
 Initialised this object from a data in a network string. More...
 
void encode (NetworkString *ns)
 Encodes this vote object into a network string. More...
 

Public Attributes

core::stringw m_player_name
 
std::string m_track_name
 
uint8_t m_num_laps
 
bool m_reverse
 

Detailed Description

A simple structure to store a vote from a client: track name, number of laps and reverse or not.

Constructor & Destructor Documentation

◆ PeerVote()

PeerVote::PeerVote ( NetworkString ns)
inline

Initialised this object from a data in a network string.

Member Function Documentation

◆ encode()

void PeerVote::encode ( NetworkString ns)
inline

Encodes this vote object into a network string.


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