ManaPlus
Public Member Functions | Static Public Member Functions
Ea::GameHandler Class Reference

#include <gamehandler.h>

Inheritance diagram for Ea::GameHandler:
Net::GameHandler EAthena::GameHandler TmwAthena::GameHandler

Public Member Functions

 GameHandler ()
 
void who () const
 
bool removeDeadBeings () const
 
void clear () const
 
void initEngines () const
 
- Public Member Functions inherited from Net::GameHandler
 GameHandler ()
 
virtual ~GameHandler ()
 
virtual void connect () const =0
 
virtual bool isConnected () const =0
 
virtual void disconnect () const =0
 
virtual void quit () const =0
 
virtual void ping (const int tick) const =0
 
virtual void ping2 () const =0
 
virtual void disconnect2 () const =0
 
virtual bool mustPing () const =0
 
virtual void mapLoadedEvent () const =0
 
virtual void reqRemainTime () const =0
 

Static Public Member Functions

static void setMap (const std::string &map)
 

Detailed Description

Definition at line 32 of file gamehandler.h.

Constructor & Destructor Documentation

◆ GameHandler()

Ea::GameHandler::GameHandler ( )

Definition at line 35 of file gamehandler.cpp.

35  :
37 {
38  GameRecv::mMap.clear();
40 }
const BeingId BeingId_zero
Definition: beingid.h:30
BeingId mCharID
Definition: gamerecv.cpp:47
std::string mMap
Definition: gamerecv.cpp:46

References BeingId_zero, Ea::GameRecv::mCharID, and Ea::GameRecv::mMap.

Member Function Documentation

◆ clear()

void Ea::GameHandler::clear ( ) const
virtual

Implements Net::GameHandler.

Definition at line 51 of file gamehandler.cpp.

52 {
53  GameRecv::mMap.clear();
55 }

References BeingId_zero, Ea::GameRecv::mCharID, and Ea::GameRecv::mMap.

◆ initEngines()

void Ea::GameHandler::initEngines ( ) const
virtual

Implements Net::GameHandler.

Definition at line 57 of file gamehandler.cpp.

58 {
59  if (!GameRecv::mMap.empty())
61 }
static Game * instance()
Definition: game.h:82
void changeMap(const std::string &mapName)
Definition: game.cpp:1093
std::string empty
Definition: podict.cpp:26

References Game::changeMap(), empty, Game::instance(), and Ea::GameRecv::mMap.

◆ removeDeadBeings()

bool Ea::GameHandler::removeDeadBeings ( ) const
inlinevirtual

Implements Net::GameHandler.

Definition at line 41 of file gamehandler.h.

42  { return true; }

◆ setMap()

void Ea::GameHandler::setMap ( const std::string &  map)
static

◆ who()

void Ea::GameHandler::who ( ) const
virtual

Implements Net::GameHandler.

Definition at line 42 of file gamehandler.cpp.

43 {
44 }

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