_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OnlineState Class Referenceabstract
Inheritance diagram for OnlineState:
C2S_ENTERCHAT C2S_LOGONRESPONSE2_OR_C2S_CREATEACCOUNT C2S_SID_AUTH_INFO DisconnectedState S2C_CHATEVENT S2C_CREATEACCOUNT2 S2C_ENTERCHAT S2C_LOGONRESPONSE2 S2C_SID_AUTH_CHECK S2C_SID_AUTH_INFO

Public Member Functions

virtual ~OnlineState ()
 
virtual void doOneStep (Context *ctx)=0
 

Protected Member Functions

int send (Context *ctx, BNCSOutputStream *buf)
 
void handleNull (Context *)
 
void handlePing (Context *)
 
void handleChannelList (Context *)
 
void handleChatevent (Context *)
 
void handleGamelist (Context *)
 
void handleStartAdvertising (Context *)
 
void handleFriendlist (Context *)
 
void handleUserdata (Context *)
 
void finishMessage (Context *)
 
bool handleGenericMessages (Context *ctx, uint8_t msg)
 

Protected Attributes

uint32_t pingValue
 

Constructor & Destructor Documentation

◆ ~OnlineState()

virtual OnlineState::~OnlineState ( )
inlinevirtual

Member Function Documentation

◆ doOneStep()

virtual void OnlineState::doOneStep ( Context ctx)
pure virtual

Implemented in S2C_CHATEVENT, and DisconnectedState.

◆ finishMessage()

void OnlineState::finishMessage ( Context ctx)
protected

◆ handleChannelList()

void OnlineState::handleChannelList ( Context ctx)
protected

◆ handleChatevent()

void OnlineState::handleChatevent ( Context ctx)
protected

◆ handleFriendlist()

void OnlineState::handleFriendlist ( Context ctx)
protected

◆ handleGamelist()

void OnlineState::handleGamelist ( Context ctx)
protected

◆ handleGenericMessages()

bool OnlineState::handleGenericMessages ( Context ctx,
uint8_t  msg 
)
inlineprotected

◆ handleNull()

void OnlineState::handleNull ( Context ctx)
protected

◆ handlePing()

void OnlineState::handlePing ( Context ctx)
protected

◆ handleStartAdvertising()

void OnlineState::handleStartAdvertising ( Context ctx)
protected

◆ handleUserdata()

void OnlineState::handleUserdata ( Context ctx)
protected

◆ send()

int OnlineState::send ( Context ctx,
BNCSOutputStream buf 
)
protected

Member Data Documentation

◆ pingValue

uint32_t OnlineState::pingValue
protected

The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.