Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TmwAthena::GameHandler Class Referencefinal

#include <gamehandler.h>

Inheritance diagram for TmwAthena::GameHandler:
TmwAthena::MessageHandler Net::GameHandler EventListener Net::MessageHandler

Public Member Functions

 GameHandler ()
 
void handleMessage (MessageIn &msg) override
 
void event (Event::Channel channel, const Event &event) override
 
void connect () override
 
bool isConnected () override
 
void disconnect () override
 
void quit () override
 
bool removeDeadBeings () const override
 
void clear ()
 
void setMap (const std::string &map)
 
bool canUseMagicBar () const override
 The tmwAthena protocol is making use of the MP status bar.
 
int getPickupRange () const override
 Tells the range is pixel where the player can pickup items from.
 
int getNpcTalkRange () const override
 Tells the range is pixel where the player can talk to an NPC from.
 
- Public Member Functions inherited from TmwAthena::MessageHandler
 MessageHandler ()
 
 ~MessageHandler () override
 
void setNetwork (Network *network)
 
- Public Member Functions inherited from Net::GameHandler
virtual ~GameHandler ()
 
- Public Member Functions inherited from EventListener
virtual ~EventListener ()
 
void listen (Event::Channel channel)
 
void ignore (Event::Channel channel)
 

Private Attributes

std::string mMap
 Keeps the map filename.
 
int mCharID
 
int mTileX
 < Saved for map-server switching
 
int mTileY
 

Additional Inherited Members

- Public Attributes inherited from Net::MessageHandler
const uint16_t * handledMessages = _no_messages
 
- Protected Attributes inherited from TmwAthena::MessageHandler
NetworkmNetwork
 

Detailed Description

Definition at line 34 of file gamehandler.h.

Constructor & Destructor Documentation

◆ GameHandler()

TmwAthena::GameHandler::GameHandler ( )

Definition at line 46 of file gamehandler.cpp.

Member Function Documentation

◆ canUseMagicBar()

bool TmwAthena::GameHandler::canUseMagicBar ( ) const
inlineoverridevirtual

The tmwAthena protocol is making use of the MP status bar.

Implements Net::GameHandler.

Definition at line 59 of file gamehandler.h.

◆ clear()

void TmwAthena::GameHandler::clear ( )

◆ connect()

void TmwAthena::GameHandler::connect ( )
overridevirtual

Implements Net::GameHandler.

Definition at line 122 of file gamehandler.cpp.

◆ disconnect()

void TmwAthena::GameHandler::disconnect ( )
overridevirtual

Implements Net::GameHandler.

Definition at line 154 of file gamehandler.cpp.

◆ event()

void TmwAthena::GameHandler::event ( Event::Channel  channel,
const Event event 
)
overridevirtual

Implements EventListener.

Definition at line 96 of file gamehandler.cpp.

◆ getNpcTalkRange()

int TmwAthena::GameHandler::getNpcTalkRange ( ) const
inlineoverridevirtual

Tells the range is pixel where the player can talk to an NPC from.

Implements Net::GameHandler.

Definition at line 63 of file gamehandler.h.

◆ getPickupRange()

int TmwAthena::GameHandler::getPickupRange ( ) const
overridevirtual

Tells the range is pixel where the player can pickup items from.

Implements Net::GameHandler.

Definition at line 169 of file gamehandler.cpp.

◆ handleMessage()

void TmwAthena::GameHandler::handleMessage ( MessageIn msg)
overridevirtual

Implements TmwAthena::MessageHandler.

Definition at line 60 of file gamehandler.cpp.

◆ isConnected()

bool TmwAthena::GameHandler::isConnected ( )
overridevirtual

Implements Net::GameHandler.

Definition at line 149 of file gamehandler.cpp.

◆ quit()

void TmwAthena::GameHandler::quit ( )
overridevirtual

Implements Net::GameHandler.

Definition at line 159 of file gamehandler.cpp.

◆ removeDeadBeings()

bool TmwAthena::GameHandler::removeDeadBeings ( ) const
inlineoverridevirtual

Implements Net::GameHandler.

Definition at line 52 of file gamehandler.h.

◆ setMap()

void TmwAthena::GameHandler::setMap ( const std::string &  map)

Definition at line 164 of file gamehandler.cpp.

Member Data Documentation

◆ mCharID

int TmwAthena::GameHandler::mCharID
private

Definition at line 67 of file gamehandler.h.

◆ mMap

std::string TmwAthena::GameHandler::mMap
private

Keeps the map filename.

Definition at line 66 of file gamehandler.h.

◆ mTileX

int TmwAthena::GameHandler::mTileX
private

< Saved for map-server switching

Keeps the local character position until the map is loaded to permit the translation in pixels.

Definition at line 72 of file gamehandler.h.

◆ mTileY

int TmwAthena::GameHandler::mTileY
private

Definition at line 72 of file gamehandler.h.


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