C# Класс PolaMUD.Room

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

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

Свойство Тип Описание
Area PolaMUD.Area
Description string
Exits Exit>.Dictionary
MobResets List
Terrain Terrain

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

Метод Описание
Display ( Player player ) : void

Show the Room to Player, including all contents.

GetThing ( Type reference, string name ) : Thing

Get a Thing from the room with the provided Type (Mob, Player, etc.) that matches Name.

Load ( XmlNode room ) : void

Loads a new room from the provided XmlNode.

Load ( XmlNode room, PolaMUD.Area area ) : void

Loads a new room from the provided XmlNode while automatically setting the area that the room belongs to.

Room ( int number ) : System

Creates a new room with the specified IndexNumber and adds it to Global.RoomTable.

SendMessage ( string message ) : void
SendMessage ( string message, string mobileMessage ) : void

Send a message to all valid Mobs in the Room.

SendMobileMessage ( string mobileMessage ) : void
ToString ( ) : string

Displays the short descriptive string of the room.

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

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

Show the Room to Player, including all contents.
public Display ( Player player ) : void
player Player
Результат void

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

Get a Thing from the room with the provided Type (Mob, Player, etc.) that matches Name.
public GetThing ( Type reference, string name ) : Thing
reference System.Type The Type to search for (Mob, Player, etc.)
name string Name to match
Результат Thing

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

Loads a new room from the provided XmlNode.
public Load ( XmlNode room ) : void
room System.Xml.XmlNode
Результат void

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

Loads a new room from the provided XmlNode while automatically setting the area that the room belongs to.
public Load ( XmlNode room, PolaMUD.Area area ) : void
room System.Xml.XmlNode
area PolaMUD.Area
Результат void

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

Creates a new room with the specified IndexNumber and adds it to Global.RoomTable.
public Room ( int number ) : System
number int
Результат System

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

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

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

Send a message to all valid Mobs in the Room.
public SendMessage ( string message, string mobileMessage ) : void
message string
mobileMessage string
Результат void

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

public SendMobileMessage ( string mobileMessage ) : void
mobileMessage string
Результат void

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

Displays the short descriptive string of the room.
public ToString ( ) : string
Результат string

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

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

public Area,PolaMUD Area
Результат PolaMUD.Area

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

public string Description
Результат string

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

public Dictionary Exits
Результат Exit>.Dictionary

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

public List MobResets
Результат List

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

public Terrain,PolaMUD Terrain
Результат Terrain