C# Класс MUDServer.Player

Наследование: CombatEntity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Client TelnetClient

Открытые методы

Метод Описание
Dispose ( ) : void
Player ( TelnetClient client, Location location ) : System
ProcessInput ( string text ) : IEnumerator
SendMessage ( string message ) : void
SendPrompt ( ) : void

Защищенные методы

Метод Описание
DispatchEvent ( EventType type, object evt ) : IEnumerator
OnLocationChange ( Location oldLocation, Location newLocation ) : void
ThinkTask ( ) : IEnumerator

Приватные методы

Метод Описание
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

Описание методов

DispatchEvent() защищенный Метод

protected DispatchEvent ( EventType type, object evt ) : IEnumerator
type EventType
evt object
Результат IEnumerator

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

OnLocationChange() защищенный Метод

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
Результат void

Player() публичный Метод

public Player ( TelnetClient client, Location location ) : System
client TelnetClient
location Location
Результат System

ProcessInput() публичный Метод

public ProcessInput ( string text ) : IEnumerator
text string
Результат IEnumerator

SendMessage() публичный Метод

public SendMessage ( string message ) : void
message string
Результат void

SendPrompt() публичный Метод

public SendPrompt ( ) : void
Результат void

ThinkTask() защищенный Метод

protected ThinkTask ( ) : IEnumerator
Результат IEnumerator

Описание свойств

Client публичное свойство

public TelnetClient,MUDServer Client
Результат TelnetClient