C# Class invertika_game.Game.GameHandler

Inheritance: ISL.Server.Network.ConnectionHandler
Afficher le fichier Open project: Invertika/server Class Usage Examples

Méthodes publiques

Méthode Description
GameHandler ( ) : System
addPendingCharacter ( string token, Character ch ) : void
completeServerChange ( int id, string token, string address, int port ) : void
deletePendingClient ( ISL.Server.Network.NetComputer client ) : void
deletePendingConnect ( object data ) : void
kill ( Character ch ) : void
prepareServerChange ( Character ch ) : void
sendTo ( Character beingPtr, ISL.Server.Network.MessageOut msg ) : void
startListen ( ushort port ) : bool
tokenMatched ( ISL.Server.Network.NetComputer client, object data ) : void
updateCharacter ( int charid, int partyid ) : void

Méthodes protégées

Méthode Description
computerConnected ( TcpClient peer ) : ISL.Server.Network.NetComputer
computerDisconnected ( ISL.Server.Network.NetComputer comp ) : void
processMessage ( ISL.Server.Network.NetComputer computer, ISL.Server.Network.MessageIn message ) : void

Private Methods

Méthode Description
findActorNear ( Actor p, int id ) : Actor
findCharacterNear ( Actor p, int id ) : Character
getClientByNameSlow ( string name ) : GameClient
handleActionChange ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleAttack ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleDirectionChange ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleDisconnect ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleDrop ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleEquip ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleLowerAttribute ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleMoveItem ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleNpc ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleNpcBuySell ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleNpcPostSend ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handlePartyInvite ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handlePickup ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleRaiseAttribute ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleSay ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleTrade ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleTradeRequest ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleUnequip ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleUseItem ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleUseSpecial ( GameClient client, ISL.Server.Network.MessageIn message ) : void
handleWalk ( GameClient client, ISL.Server.Network.MessageIn message ) : void
sendNpcError ( GameClient client, int id, string errorMsg ) : void

Method Details

GameHandler() public méthode

public GameHandler ( ) : System
Résultat System

addPendingCharacter() public méthode

public addPendingCharacter ( string token, Character ch ) : void
token string
ch Character
Résultat void

completeServerChange() public méthode

public completeServerChange ( int id, string token, string address, int port ) : void
id int
token string
address string
port int
Résultat void

computerConnected() protected méthode

protected computerConnected ( TcpClient peer ) : ISL.Server.Network.NetComputer
peer System.Net.Sockets.TcpClient
Résultat ISL.Server.Network.NetComputer

computerDisconnected() protected méthode

protected computerDisconnected ( ISL.Server.Network.NetComputer comp ) : void
comp ISL.Server.Network.NetComputer
Résultat void

deletePendingClient() public méthode

public deletePendingClient ( ISL.Server.Network.NetComputer client ) : void
client ISL.Server.Network.NetComputer
Résultat void

deletePendingConnect() public méthode

public deletePendingConnect ( object data ) : void
data object
Résultat void

kill() public méthode

public kill ( Character ch ) : void
ch Character
Résultat void

prepareServerChange() public méthode

public prepareServerChange ( Character ch ) : void
ch Character
Résultat void

processMessage() protected méthode

protected processMessage ( ISL.Server.Network.NetComputer computer, ISL.Server.Network.MessageIn message ) : void
computer ISL.Server.Network.NetComputer
message ISL.Server.Network.MessageIn
Résultat void

sendTo() public méthode

public sendTo ( Character beingPtr, ISL.Server.Network.MessageOut msg ) : void
beingPtr Character
msg ISL.Server.Network.MessageOut
Résultat void

startListen() public méthode

public startListen ( ushort port ) : bool
port ushort
Résultat bool

tokenMatched() public méthode

public tokenMatched ( ISL.Server.Network.NetComputer client, object data ) : void
client ISL.Server.Network.NetComputer
data object
Résultat void

updateCharacter() public méthode

public updateCharacter ( int charid, int partyid ) : void
charid int
partyid int
Résultat void