SuperTuxKart
Loading...
Searching...
No Matches
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.
 
void encode (NetworkString *ns)
 Encodes this vote object into a network string.
 

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.


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