C# Class DungeonServer.Server

This class represents the main console application
Inheritance: IHandleEvent
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Свойство Type Description
_paused bool
error bool

Méthodes publiques

Méthode Description
HandleEvent ( bool incoming, Events eventID ) : void
Main ( string args ) : void

Main method

ResetActors ( ) : void
Run ( ) : void
SendMessage ( PacketType type, NetConnection target ) : void
SendMessageToAll ( PacketType type, NetDeliveryMethod method, IPEndPoint exclude ) : void

Broadcast a message to all clients

Server ( string args ) : System

Private Methods

Méthode Description
Log ( string message, ConsoleColor color = ConsoleColor.White ) : void

Add text to log (in specified color)

ProcessMessage ( byte id, NetIncomingMessage message ) : void

Deal with an individual message

Update ( ) : void
WaitForInput ( ) : void

Main loop used for console UI

WorkMessages ( object param ) : void

Work on the message queue (reacting to all incoming messages)

Method Details

HandleEvent() public méthode

public HandleEvent ( bool incoming, Events eventID ) : void
incoming bool
eventID Events
Résultat void

Main() public static méthode

Main method
public static Main ( string args ) : void
args string
Résultat void

ResetActors() public méthode

public ResetActors ( ) : void
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void

SendMessage() public méthode

public SendMessage ( PacketType type, NetConnection target ) : void
type PacketType
target Lidgren.Network.NetConnection
Résultat void

SendMessageToAll() public méthode

Broadcast a message to all clients
public SendMessageToAll ( PacketType type, NetDeliveryMethod method, IPEndPoint exclude ) : void
type PacketType
method NetDeliveryMethod
exclude System.Net.IPEndPoint
Résultat void

Server() public méthode

public Server ( string args ) : System
args string
Résultat System

Property Details

_paused public_oe property

public bool _paused
Résultat bool

error public_oe static_oe property

public static bool error
Résultat bool