Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
LANAPI Class Reference

#include <LANAPI.h>

Inherits LANAPIInterface.

Public Member Functions

 LANAPI ()
 
virtual ~LANAPI ()
 
virtual void init (void)
 Initialize or re-initialize the instance.
 
virtual void reset (void)
 reset the logic system
 
virtual void update (void)
 update the world
 
virtual void setIsActive (Bool isActive)
 tell TheLAN whether or not
 
virtual void RequestLocations (void)
 Request everybody to respond with where they are.
 
virtual void RequestGameJoin (LANGameInfo *game, UnsignedInt ip=0)
 Request to join a game.
 
virtual void RequestGameJoinDirectConnect (UnsignedInt ipaddress)
 Request to join a game at an IP address.
 
virtual void RequestGameLeave (void)
 Tell everyone we're leaving.
 
virtual void RequestAccept (void)
 Indicate we're OK with the game options.
 
virtual void RequestHasMap (void)
 Send our map status.
 
virtual void RequestChat (UnicodeString message, ChatType format)
 Send a chat message.
 
virtual void RequestGameStart (void)
 Tell everyone the game is starting.
 
virtual void RequestGameStartTimer (Int seconds)
 
virtual void RequestGameOptions (AsciiString gameOptions, Bool isPublic, UnsignedInt ip=0)
 Change the game options.
 
virtual void RequestGameCreate (UnicodeString gameName, Bool isDirectConnect)
 Try to host a game.
 
virtual void RequestGameAnnounce (void)
 Send out game info if host.
 
virtual void RequestSetName (UnicodeString newName)
 Pick a new name.
 
virtual void RequestLobbyLeave (Bool forced)
 Announce that we're leaving the lobby.
 
virtual void ResetGameStartTimer (void)
 
virtual void OnGameList (LANGameInfo *gameList)
 List of games.
 
virtual void OnPlayerList (LANPlayer *playerList)
 List of players in the Lobby.
 
virtual void OnGameJoin (ReturnType ret, LANGameInfo *theGame)
 Did we get in the game?
 
virtual void OnPlayerJoin (Int slot, UnicodeString playerName)
 Someone else joined our game (host only; joiners get a slotlist)
 
virtual void OnHostLeave (void)
 Host left the game.
 
virtual void OnPlayerLeave (UnicodeString player)
 Someone left the game.
 
virtual void OnAccept (UnsignedInt playerIP, Bool status)
 Someone's accept status changed.
 
virtual void OnHasMap (UnsignedInt playerIP, Bool status)
 Someone's map status changed.
 
virtual void OnChat (UnicodeString player, UnsignedInt ip, UnicodeString message, ChatType format)
 Chat message from someone.
 
virtual void OnGameStart (void)
 The game is starting.
 
virtual void OnGameStartTimer (Int seconds)
 
virtual void OnGameOptions (UnsignedInt playerIP, Int playerSlot, AsciiString options)
 Someone sent game options.
 
virtual void OnGameCreate (ReturnType ret)
 Your game is created.
 
virtual void OnNameChange (UnsignedInt IP, UnicodeString newName)
 Someone has morphed.
 
virtual void OnInActive (UnsignedInt IP)
 Someone has alt-tabbed out.
 
virtual LANGameInfoLookupGame (UnicodeString gameName)
 return a pointer to a game we know about
 
virtual LANGameInfoLookupGameByListOffset (Int offset)
 return a pointer to a game we know about
 
virtual LANPlayerLookupPlayer (UnsignedInt playerIP)
 return a pointer to a player we know about
 
virtual Bool SetLocalIP (UnsignedInt localIP)
 For multiple NIC machines.
 
virtual void SetLocalIP (AsciiString localIP)
 For multiple NIC machines.
 
virtual Bool AmIHost (void)
 Am I hosting a game?
 
virtual UnicodeString GetMyName (void)
 What's my name?
 
virtual LANGameInfoGetMyGame (void)
 What's my Game?
 
virtual UnsignedInt GetLocalIP (void)
 What's my IP?
 
virtual void fillInLANMessage (LANMessage *msg)
 Fill in default params.
 
virtual void checkMOTD (void)
 
- Public Member Functions inherited from LANAPIInterface
virtual ~LANAPIInterface ()
 
UnicodeString getErrorStringFromReturnType (ReturnType ret)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Protected Types

enum  PendingActionType {
  ACT_NONE = 0 , ACT_JOIN , ACT_JOINDIRECTCONNECT , ACT_LEAVE ,
  ACT_MAX
}
 

Protected Member Functions

void sendMessage (LANMessage *msg, UnsignedInt ip=0)
 
void removePlayer (LANPlayer *player)
 
void removeGame (LANGameInfo *game)
 
void addPlayer (LANPlayer *player)
 
void addGame (LANGameInfo *game)
 
AsciiString createSlotString (void)
 
void handleRequestLocations (LANMessage *msg, UnsignedInt senderIP)
 
void handleGameAnnounce (LANMessage *msg, UnsignedInt senderIP)
 
void handleLobbyAnnounce (LANMessage *msg, UnsignedInt senderIP)
 
void handleRequestGameInfo (LANMessage *msg, UnsignedInt senderIP)
 
void handleRequestJoin (LANMessage *msg, UnsignedInt senderIP)
 
void handleJoinAccept (LANMessage *msg, UnsignedInt senderIP)
 
void handleJoinDeny (LANMessage *msg, UnsignedInt senderIP)
 
void handleRequestGameLeave (LANMessage *msg, UnsignedInt senderIP)
 
void handleRequestLobbyLeave (LANMessage *msg, UnsignedInt senderIP)
 
void handleSetAccept (LANMessage *msg, UnsignedInt senderIP)
 
void handleHasMap (LANMessage *msg, UnsignedInt senderIP)
 
void handleChat (LANMessage *msg, UnsignedInt senderIP)
 
void handleGameStart (LANMessage *msg, UnsignedInt senderIP)
 
void handleGameStartTimer (LANMessage *msg, UnsignedInt senderIP)
 
void handleGameOptions (LANMessage *msg, UnsignedInt senderIP)
 
void handleInActive (LANMessage *msg, UnsignedInt senderIP)
 

Protected Attributes

LANPlayerm_lobbyPlayers
 List of players in the lobby.
 
LANGameInfom_games
 List of games.
 
UnicodeString m_name
 Who do we think we are?
 
AsciiString m_userName
 login name
 
AsciiString m_hostName
 machine name
 
UnsignedInt m_gameStartTime
 
Int m_gameStartSeconds
 
PendingActionType m_pendingAction
 What action are we performing?
 
UnsignedInt m_expiration
 When should we give up on our action?
 
UnsignedInt m_actionTimeout
 
UnsignedInt m_directConnectRemoteIP
 The IP address of the game we are direct connecting to.
 
UnsignedInt m_lastResendTime
 
Bool m_isInLANMenu
 true while we are in a LAN menu (lobby, game options, direct connect)
 
Bool m_inLobby
 Are we in the lobby (not in a game)?
 
LANGameInfom_currentGame
 Pointer to game (setup screen) we are currently in (NULL for lobby)
 
UnsignedInt m_localIP
 
Transportm_transport
 
UnsignedInt m_broadcastAddr
 
UnsignedInt m_lastUpdate
 
AsciiString m_lastGameopt
 
Bool m_isActive
 is the game currently active?
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Static Protected Attributes

static const UnsignedInt s_resendDelta = 10 * 1000
 This is how often we announce ourselves to the world.
 

Additional Inherited Members

- Public Types inherited from LANAPIInterface
enum  ChatType { LANCHAT_NORMAL = 0 , LANCHAT_EMOTE , LANCHAT_SYSTEM , LANCHAT_MAX }
 
enum  ReturnType {
  RET_OK , RET_TIMEOUT , RET_GAME_FULL , RET_DUPLICATE_NAME ,
  RET_CRC_MISMATCH , RET_SERIAL_DUPE , RET_GAME_STARTED , RET_GAME_EXISTS ,
  RET_GAME_GONE , RET_BUSY , RET_UNKNOWN , RET_MAX
}
 

Detailed Description

The LANAPI class is used to instantiate a singleton which implements the interface to all LAN broadcast communications.

Definition at line 152 of file LANAPI.h.

Member Enumeration Documentation

◆ PendingActionType

enum LANAPI::PendingActionType
protected
Enumerator
ACT_NONE 
ACT_JOIN 
ACT_JOINDIRECTCONNECT 
ACT_LEAVE 
ACT_MAX 

Definition at line 217 of file LANAPI.h.

Constructor & Destructor Documentation

◆ LANAPI()

LANAPI::LANAPI ( void )

Definition at line 73 of file LANAPI.cpp.

◆ ~LANAPI()

LANAPI::~LANAPI ( void )
virtual

Definition at line 97 of file LANAPI.cpp.

Member Function Documentation

◆ addGame()

void LANAPI::addGame ( LANGameInfo * game)
protected

Definition at line 1200 of file LANAPI.cpp.

◆ addPlayer()

void LANAPI::addPlayer ( LANPlayer * player)
protected

Definition at line 1230 of file LANAPI.cpp.

◆ AmIHost()

Bool LANAPI::AmIHost ( void )
virtual

Am I hosting a game?

Implements LANAPIInterface.

Definition at line 1278 of file LANAPI.cpp.

◆ checkMOTD()

void LANAPI::checkMOTD ( void )
virtual

Implements LANAPIInterface.

Definition at line 264 of file LANAPI.cpp.

◆ createSlotString()

AsciiString LANAPI::createSlotString ( void )
protected

◆ fillInLANMessage()

void LANAPI::fillInLANMessage ( LANMessage * msg)
virtual

Fill in default params.

Implements LANAPIInterface.

Definition at line 1078 of file LANAPI.cpp.

◆ GetLocalIP()

virtual UnsignedInt LANAPI::GetLocalIP ( void )
inlinevirtual

What's my IP?

Definition at line 212 of file LANAPI.h.

◆ GetMyGame()

virtual LANGameInfo * LANAPI::GetMyGame ( void )
inlinevirtual

What's my Game?

Implements LANAPIInterface.

Definition at line 211 of file LANAPI.h.

◆ GetMyName()

virtual UnicodeString LANAPI::GetMyName ( void )
inlinevirtual

What's my name?

Implements LANAPIInterface.

Definition at line 210 of file LANAPI.h.

◆ handleChat()

void LANAPI::handleChat ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 575 of file LANAPIhandlers.cpp.

◆ handleGameAnnounce()

void LANAPI::handleGameAnnounce ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 99 of file LANAPIhandlers.cpp.

◆ handleGameOptions()

void LANAPI::handleGameOptions ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 626 of file LANAPIhandlers.cpp.

◆ handleGameStart()

void LANAPI::handleGameStart ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 610 of file LANAPIhandlers.cpp.

◆ handleGameStartTimer()

void LANAPI::handleGameStartTimer ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 618 of file LANAPIhandlers.cpp.

◆ handleHasMap()

void LANAPI::handleHasMap ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 550 of file LANAPIhandlers.cpp.

◆ handleInActive()

void LANAPI::handleInActive ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 642 of file LANAPIhandlers.cpp.

◆ handleJoinAccept()

void LANAPI::handleJoinAccept ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 381 of file LANAPIhandlers.cpp.

◆ handleJoinDeny()

void LANAPI::handleJoinDeny ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 431 of file LANAPIhandlers.cpp.

◆ handleLobbyAnnounce()

void LANAPI::handleLobbyAnnounce ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 163 of file LANAPIhandlers.cpp.

◆ handleRequestGameInfo()

void LANAPI::handleRequestGameInfo ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 185 of file LANAPIhandlers.cpp.

◆ handleRequestGameLeave()

void LANAPI::handleRequestGameLeave ( LANMessage * msg,
UnsignedInt senderIP )
protected
Todo
re-add myself to lobby? Or just keep me there all the time? If we send a LOBBY_ANNOUNCE things'll work out...

Definition at line 444 of file LANAPIhandlers.cpp.

◆ handleRequestJoin()

void LANAPI::handleRequestJoin ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 208 of file LANAPIhandlers.cpp.

◆ handleRequestLobbyLeave()

void LANAPI::handleRequestLobbyLeave ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 516 of file LANAPIhandlers.cpp.

◆ handleRequestLocations()

void LANAPI::handleRequestLocations ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 43 of file LANAPIhandlers.cpp.

◆ handleSetAccept()

void LANAPI::handleSetAccept ( LANMessage * msg,
UnsignedInt senderIP )
protected

Definition at line 534 of file LANAPIhandlers.cpp.

◆ init()

void LANAPI::init ( void )
virtual

Initialize or re-initialize the instance.

Implements LANAPIInterface.

Definition at line 104 of file LANAPI.cpp.

◆ LookupGame()

LANGameInfo * LANAPI::LookupGame ( UnicodeString gameName)
virtual

return a pointer to a game we know about

Implements LANAPIInterface.

Definition at line 1103 of file LANAPI.cpp.

◆ LookupGameByListOffset()

LANGameInfo * LANAPI::LookupGameByListOffset ( Int offset)
virtual

return a pointer to a game we know about

Implements LANAPIInterface.

Definition at line 1115 of file LANAPI.cpp.

◆ LookupPlayer()

LANPlayer * LANAPI::LookupPlayer ( UnsignedInt playerIP)
virtual

return a pointer to a player we know about

Definition at line 1159 of file LANAPI.cpp.

◆ OnAccept()

void LANAPI::OnAccept ( UnsignedInt playerIP,
Bool status )
virtual

Someone's accept status changed.

Implements LANAPIInterface.

Definition at line 103 of file LANAPICallbacks.cpp.

◆ OnChat()

void LANAPI::OnChat ( UnicodeString player,
UnsignedInt ip,
UnicodeString message,
ChatType format )
virtual

Chat message from someone.

Implements LANAPIInterface.

Definition at line 673 of file LANAPICallbacks.cpp.

◆ OnGameCreate()

void LANAPI::OnGameCreate ( ReturnType ret)
virtual

Your game is created.

Implements LANAPIInterface.

Definition at line 601 of file LANAPICallbacks.cpp.

◆ OnGameJoin()

void LANAPI::OnGameJoin ( ReturnType ret,
LANGameInfo * theGame )
virtual

Did we get in the game?

Todo
: re-enable lobby controls? Error msgs?

Implements LANAPIInterface.

Definition at line 511 of file LANAPICallbacks.cpp.

◆ OnGameList()

void LANAPI::OnGameList ( LANGameInfo * gameList)
virtual

List of games.

Implements LANAPIInterface.

Definition at line 592 of file LANAPICallbacks.cpp.

◆ OnGameOptions()

void LANAPI::OnGameOptions ( UnsignedInt playerIP,
Int playerSlot,
AsciiString options )
virtual

Someone sent game options.

Implements LANAPIInterface.

Definition at line 272 of file LANAPICallbacks.cpp.

◆ OnGameStart()

void LANAPI::OnGameStart ( void )
virtual

The game is starting.

Implements LANAPIInterface.

Definition at line 190 of file LANAPICallbacks.cpp.

◆ OnGameStartTimer()

void LANAPI::OnGameStartTimer ( Int seconds)
virtual

Implements LANAPIInterface.

Definition at line 180 of file LANAPICallbacks.cpp.

◆ OnHasMap()

void LANAPI::OnHasMap ( UnsignedInt playerIP,
Bool status )
virtual

Someone's map status changed.

Implements LANAPIInterface.

Definition at line 137 of file LANAPICallbacks.cpp.

◆ OnHostLeave()

void LANAPI::OnHostLeave ( void )
virtual

Host left the game.

Implements LANAPIInterface.

Definition at line 542 of file LANAPICallbacks.cpp.

◆ OnInActive()

void LANAPI::OnInActive ( UnsignedInt IP)
virtual

Someone has alt-tabbed out.

Definition at line 669 of file LANAPICallbacks.cpp.

◆ OnNameChange()

void LANAPI::OnNameChange ( UnsignedInt IP,
UnicodeString newName )
virtual

Someone has morphed.

Implements LANAPIInterface.

Definition at line 664 of file LANAPICallbacks.cpp.

◆ OnPlayerJoin()

void LANAPI::OnPlayerJoin ( Int slot,
UnicodeString playerName )
virtual

Someone else joined our game (host only; joiners get a slotlist)

Implements LANAPIInterface.

Definition at line 497 of file LANAPICallbacks.cpp.

◆ OnPlayerLeave()

void LANAPI::OnPlayerLeave ( UnicodeString player)
virtual

Someone left the game.

Implements LANAPIInterface.

Definition at line 552 of file LANAPICallbacks.cpp.

◆ OnPlayerList()

void LANAPI::OnPlayerList ( LANPlayer * playerList)
virtual

List of players in the Lobby.

Implements LANAPIInterface.

Definition at line 632 of file LANAPICallbacks.cpp.

◆ removeGame()

void LANAPI::removeGame ( LANGameInfo * game)
protected

Definition at line 1130 of file LANAPI.cpp.

◆ removePlayer()

void LANAPI::removePlayer ( LANPlayer * player)
protected

Definition at line 1171 of file LANAPI.cpp.

◆ RequestAccept()

void LANAPI::RequestAccept ( void )
virtual

Indicate we're OK with the game options.

Implements LANAPIInterface.

Definition at line 727 of file LANAPI.cpp.

◆ RequestChat()

void LANAPI::RequestChat ( UnicodeString message,
ChatType format )
virtual

Send a chat message.

Implements LANAPIInterface.

Definition at line 784 of file LANAPI.cpp.

◆ RequestGameAnnounce()

void LANAPI::RequestGameAnnounce ( void )
virtual

Send out game info if host.

Implements LANAPIInterface.

Definition at line 704 of file LANAPI.cpp.

◆ RequestGameCreate()

void LANAPI::RequestGameCreate ( UnicodeString gameName,
Bool isDirectConnect )
virtual

Try to host a game.

Todo
: make sure LAN games with identical names don't crash things like in RA2.
Todo
: Need to initialize the players elsewere.

Implements LANAPIInterface.

Definition at line 869 of file LANAPI.cpp.

◆ RequestGameJoin()

void LANAPI::RequestGameJoin ( LANGameInfo * game,
UnsignedInt ip = 0 )
virtual

Request to join a game.

Implements LANAPIInterface.

Definition at line 618 of file LANAPI.cpp.

◆ RequestGameJoinDirectConnect()

void LANAPI::RequestGameJoinDirectConnect ( UnsignedInt ipaddress)
virtual

Request to join a game at an IP address.

Implements LANAPIInterface.

Definition at line 650 of file LANAPI.cpp.

◆ RequestGameLeave()

void LANAPI::RequestGameLeave ( void )
virtual

Tell everyone we're leaving.

Implements LANAPIInterface.

Definition at line 679 of file LANAPI.cpp.

◆ RequestGameOptions()

void LANAPI::RequestGameOptions ( AsciiString gameOptions,
Bool isPublic,
UnsignedInt ip = 0 )
virtual

Change the game options.

Implements LANAPIInterface.

Definition at line 838 of file LANAPI.cpp.

◆ RequestGameStart()

void LANAPI::RequestGameStart ( void )
virtual

Tell everyone the game is starting.

Implements LANAPIInterface.

Definition at line 799 of file LANAPI.cpp.

◆ RequestGameStartTimer()

void LANAPI::RequestGameStartTimer ( Int seconds)
virtual

Implements LANAPIInterface.

Definition at line 819 of file LANAPI.cpp.

◆ RequestHasMap()

void LANAPI::RequestHasMap ( void )
virtual

Send our map status.

Implements LANAPIInterface.

Definition at line 741 of file LANAPI.cpp.

◆ RequestLobbyLeave()

void LANAPI::RequestLobbyLeave ( Bool forced)
virtual

Announce that we're leaving the lobby.

Implements LANAPIInterface.

Definition at line 1091 of file LANAPI.cpp.

◆ RequestLocations()

void LANAPI::RequestLocations ( void )
virtual

Request everybody to respond with where they are.

Implements LANAPIInterface.

Definition at line 610 of file LANAPI.cpp.

◆ RequestSetName()

void LANAPI::RequestSetName ( UnicodeString newName)
virtual

Pick a new name.

Implements LANAPIInterface.

Definition at line 1035 of file LANAPI.cpp.

◆ reset()

void LANAPI::reset ( void )
virtual

reset the logic system

Implements LANAPIInterface.

Definition at line 138 of file LANAPI.cpp.

◆ ResetGameStartTimer()

void LANAPI::ResetGameStartTimer ( void )
virtual

Implements LANAPIInterface.

Definition at line 813 of file LANAPI.cpp.

◆ sendMessage()

void LANAPI::sendMessage ( LANMessage * msg,
UnsignedInt ip = 0 )
protected

Definition at line 180 of file LANAPI.cpp.

◆ setIsActive()

void LANAPI::setIsActive ( Bool isActive)
virtual

tell TheLAN whether or not

Implements LANAPIInterface.

Definition at line 1283 of file LANAPI.cpp.

◆ SetLocalIP() [1/2]

void LANAPI::SetLocalIP ( AsciiString localIP)
virtual

For multiple NIC machines.

Implements LANAPIInterface.

Definition at line 1272 of file LANAPI.cpp.

◆ SetLocalIP() [2/2]

Bool LANAPI::SetLocalIP ( UnsignedInt localIP)
virtual

For multiple NIC machines.

Implements LANAPIInterface.

Definition at line 1260 of file LANAPI.cpp.

◆ update()

void LANAPI::update ( void )
virtual

update the world

Implements LANAPIInterface.

Definition at line 318 of file LANAPI.cpp.

Member Data Documentation

◆ m_actionTimeout

UnsignedInt LANAPI::m_actionTimeout
protected

Definition at line 239 of file LANAPI.h.

◆ m_broadcastAddr

UnsignedInt LANAPI::m_broadcastAddr
protected

Definition at line 253 of file LANAPI.h.

◆ m_currentGame

LANGameInfo* LANAPI::m_currentGame
protected

Pointer to game (setup screen) we are currently in (NULL for lobby)

Definition at line 247 of file LANAPI.h.

◆ m_directConnectRemoteIP

UnsignedInt LANAPI::m_directConnectRemoteIP
protected

The IP address of the game we are direct connecting to.

Definition at line 240 of file LANAPI.h.

◆ m_expiration

UnsignedInt LANAPI::m_expiration
protected

When should we give up on our action?

Definition at line 238 of file LANAPI.h.

◆ m_games

LANGameInfo* LANAPI::m_games
protected

List of games.

Definition at line 230 of file LANAPI.h.

◆ m_gameStartSeconds

Int LANAPI::m_gameStartSeconds
protected

Definition at line 235 of file LANAPI.h.

◆ m_gameStartTime

UnsignedInt LANAPI::m_gameStartTime
protected

Definition at line 234 of file LANAPI.h.

◆ m_hostName

AsciiString LANAPI::m_hostName
protected

machine name

Definition at line 233 of file LANAPI.h.

◆ m_inLobby

Bool LANAPI::m_inLobby
protected

Are we in the lobby (not in a game)?

Definition at line 246 of file LANAPI.h.

◆ m_isActive

Bool LANAPI::m_isActive
protected

is the game currently active?

Todo
: hack for demo - remove this

Definition at line 258 of file LANAPI.h.

◆ m_isInLANMenu

Bool LANAPI::m_isInLANMenu
protected

true while we are in a LAN menu (lobby, game options, direct connect)

Definition at line 245 of file LANAPI.h.

◆ m_lastGameopt

AsciiString LANAPI::m_lastGameopt
protected

Definition at line 256 of file LANAPI.h.

◆ m_lastResendTime

UnsignedInt LANAPI::m_lastResendTime
protected

Definition at line 243 of file LANAPI.h.

◆ m_lastUpdate

UnsignedInt LANAPI::m_lastUpdate
protected

Definition at line 255 of file LANAPI.h.

◆ m_lobbyPlayers

LANPlayer* LANAPI::m_lobbyPlayers
protected

List of players in the lobby.

Definition at line 229 of file LANAPI.h.

◆ m_localIP

UnsignedInt LANAPI::m_localIP
protected

Definition at line 250 of file LANAPI.h.

◆ m_name

UnicodeString LANAPI::m_name
protected

Who do we think we are?

Definition at line 231 of file LANAPI.h.

◆ m_pendingAction

PendingActionType LANAPI::m_pendingAction
protected

What action are we performing?

Definition at line 237 of file LANAPI.h.

◆ m_transport

Transport* LANAPI::m_transport
protected

Definition at line 251 of file LANAPI.h.

◆ m_userName

AsciiString LANAPI::m_userName
protected

login name

Definition at line 232 of file LANAPI.h.

◆ s_resendDelta

const UnsignedInt LANAPI::s_resendDelta = 10 * 1000
staticprotected

This is how often we announce ourselves to the world.

Definition at line 226 of file LANAPI.h.


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