C# Class PolaMUD.Room

Inheritance: Entity
Afficher le fichier Open project: Polatrite/PolaMUD Class Usage Examples

Méthodes publiques

Свойство Type Description
Area PolaMUD.Area
Description string
Exits Exit>.Dictionary
MobResets List
Terrain Terrain

Méthodes publiques

Méthode Description
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.

Method Details

Display() public méthode

Show the Room to Player, including all contents.
public Display ( Player player ) : void
player Player
Résultat void

GetThing() public méthode

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
Résultat Thing

Load() public méthode

Loads a new room from the provided XmlNode.
public Load ( XmlNode room ) : void
room System.Xml.XmlNode
Résultat void

Load() public méthode

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
Résultat void

Room() public méthode

Creates a new room with the specified IndexNumber and adds it to Global.RoomTable.
public Room ( int number ) : System
number int
Résultat System

SendMessage() public méthode

public SendMessage ( string message ) : void
message string
Résultat void

SendMessage() public méthode

Send a message to all valid Mobs in the Room.
public SendMessage ( string message, string mobileMessage ) : void
message string
mobileMessage string
Résultat void

SendMobileMessage() public méthode

public SendMobileMessage ( string mobileMessage ) : void
mobileMessage string
Résultat void

ToString() public méthode

Displays the short descriptive string of the room.
public ToString ( ) : string
Résultat string

Property Details

Area public_oe property

public Area,PolaMUD Area
Résultat PolaMUD.Area

Description public_oe property

public string Description
Résultat string

Exits public_oe property

public Dictionary Exits
Résultat Exit>.Dictionary

MobResets public_oe property

public List MobResets
Résultat List

Terrain public_oe property

public Terrain,PolaMUD Terrain
Résultat Terrain