NetGameEvent. More...

#include <event.h>

Public Member Functions

 NetGameEvent (const std::string &name, std::vector< NetGameEventValue > arg={})
 Constructs a NetGameEvent. More...
void add_argument (const NetGameEventValue &value)
NetGameEventValue get_argument (unsigned int index) const
unsigned int get_argument_count () const
std::string get_name () const
std::string to_string () const

Detailed Description

Constructor & Destructor Documentation

clan::NetGameEvent::NetGameEvent ( const std::string name,
std::vector< NetGameEventValue arg = {} 

Constructs a NetGameEvent.

Member Function Documentation

void clan::NetGameEvent::add_argument ( const NetGameEventValue value)

Adds an argument into this event.

valueThe argument to store inside this event.
NetGameEventValue clan::NetGameEvent::get_argument ( unsigned int  index) const

Retrieves an argument in this event.

indexIndex number of the argument to retrieve.
A NetGameEventValue object containing the argument value.
unsigned int clan::NetGameEvent::get_argument_count ( ) const
The number of arguments stored in this event.
std::string clan::NetGameEvent::get_name ( ) const
The name of this event.

Referenced by clan::NetGameEventDispatcher< Params >::dispatch().

std::string clan::NetGameEvent::to_string ( ) const
A string representation of this event, including all of its arguments.

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