C# Class MUDServer.Player

Inheritance: CombatEntity
ファイルを表示 Open project: sq/Fracture Class Usage Examples

Public Properties

Property Type Description
Client TelnetClient

Public Methods

Method Description
Dispose ( ) : void
Player ( TelnetClient client, Location location ) : System
ProcessInput ( string text ) : IEnumerator
SendMessage ( string message ) : void
SendPrompt ( ) : void

Protected Methods

Method Description
DispatchEvent ( EventType type, object evt ) : IEnumerator
OnLocationChange ( Location oldLocation, Location newLocation ) : void
ThinkTask ( ) : IEnumerator

Private Methods

Method Description
AddExitCommands ( Location l ) : void
AddPlayerCommands ( AlphaTrie _ ) : void
CheckPlayerIsAlive ( Player p ) : bool
OnDisconnected ( IFuture f ) : void
OnEventCombatHit ( EventType type, object evt ) : IEnumerator
OnEventCombatMiss ( EventType type, object evt ) : IEnumerator
OnEventCombatStart ( EventType type, object evt ) : IEnumerator
OnEventDeath ( EventType type, object evt ) : IEnumerator
OnEventEmote ( EventType type, object evt ) : IEnumerator
OnEventEnter ( EventType type, object evt ) : IEnumerator
OnEventLeave ( EventType type, object evt ) : IEnumerator
OnEventSay ( EventType type, object evt ) : IEnumerator
OnEventTell ( EventType type, object evt ) : IEnumerator
PerformLook ( string words ) : void
PromptHelper ( IEnumerator task, OnComplete onComplete ) : IEnumerator
RebuildCommandTrie ( ) : void
RemoveExitCommands ( Location l ) : void

Method Details

DispatchEvent() protected method

protected DispatchEvent ( EventType type, object evt ) : IEnumerator
type EventType
evt object
return IEnumerator

Dispose() public method

public Dispose ( ) : void
return void

OnLocationChange() protected method

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
return void

Player() public method

public Player ( TelnetClient client, Location location ) : System
client TelnetClient
location Location
return System

ProcessInput() public method

public ProcessInput ( string text ) : IEnumerator
text string
return IEnumerator

SendMessage() public method

public SendMessage ( string message ) : void
message string
return void

SendPrompt() public method

public SendPrompt ( ) : void
return void

ThinkTask() protected method

protected ThinkTask ( ) : IEnumerator
return IEnumerator

Property Details

Client public_oe property

public TelnetClient,MUDServer Client
return TelnetClient