Class: Lich::DragonRealms::DRRoom
- Inherits:
-
Object
- Object
- Lich::DragonRealms::DRRoom
- Defined in:
- documented/dragonrealms/drinfomon/drroom.rb
Overview
Represents a room in the DragonRealms game. This class manages the state of the room, including NPCs, PCs, and room properties.
Constant Summary collapse
- @@title =
''- @@description =
''
Class Method Summary collapse
-
.dead_npcs ⇒ Array
Returns the list of dead NPCs in the room.
-
.dead_npcs=(val) ⇒ Array
Sets the list of dead NPCs in the room.
-
.description ⇒ String
Returns the description of the room.
-
.exits ⇒ Array
Returns the exits available in the room.
-
.group_members ⇒ Array
Returns the list of group members in the room.
-
.group_members=(val) ⇒ Array
Sets the list of group members in the room.
-
.npcs ⇒ Array
Returns the list of NPCs in the room.
-
.npcs=(val) ⇒ Array
Sets the list of NPCs in the room.
-
.pcs ⇒ Array
Returns the list of player characters (PCs) in the room.
-
.pcs=(val) ⇒ Array
Sets the list of player characters (PCs) in the room.
-
.pcs_prone ⇒ Array
Returns the list of PCs that are prone in the room.
-
.pcs_prone=(val) ⇒ Array
Sets the list of PCs that are prone in the room.
-
.pcs_sitting ⇒ Array
Returns the list of PCs that are sitting in the room.
-
.pcs_sitting=(val) ⇒ Array
Sets the list of PCs that are sitting in the room.
-
.room_objs ⇒ Array
Returns the list of objects in the room.
-
.room_objs=(val) ⇒ Array
Sets the list of objects in the room.
-
.title ⇒ String
Returns the title of the room.
Class Method Details
.dead_npcs ⇒ Array
Returns the list of dead NPCs in the room.
112 113 114 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 112 def self.dead_npcs @@dead_npcs end |
.dead_npcs=(val) ⇒ Array
Sets the list of dead NPCs in the room.
119 120 121 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 119 def self.dead_npcs=(val) @@dead_npcs = val end |
.description ⇒ String
Returns the description of the room.
65 66 67 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 65 def self.description XMLData.room_description end |
.exits ⇒ Array
Returns the exits available in the room.
53 54 55 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 53 def self.exits XMLData.room_exits end |
.group_members ⇒ Array
Returns the list of group members in the room.
71 72 73 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 71 def self.group_members @@group_members end |
.group_members=(val) ⇒ Array
Sets the list of group members in the room.
80 81 82 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 80 def self.group_members=(val) @@group_members = val end |
.npcs ⇒ Array
Returns the list of NPCs in the room.
23 24 25 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 23 def self.npcs @@npcs end |
.npcs=(val) ⇒ Array
Sets the list of NPCs in the room.
32 33 34 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 32 def self.npcs=(val) @@npcs = val end |
.pcs ⇒ Array
Returns the list of player characters (PCs) in the room.
38 39 40 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 38 def self.pcs @@pcs end |
.pcs=(val) ⇒ Array
Sets the list of player characters (PCs) in the room.
47 48 49 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 47 def self.pcs=(val) @@pcs = val end |
.pcs_prone ⇒ Array
Returns the list of PCs that are prone in the room.
86 87 88 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 86 def self.pcs_prone @@pcs_prone end |
.pcs_prone=(val) ⇒ Array
Sets the list of PCs that are prone in the room.
93 94 95 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 93 def self.pcs_prone=(val) @@pcs_prone = val end |
.pcs_sitting ⇒ Array
Returns the list of PCs that are sitting in the room.
99 100 101 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 99 def self.pcs_sitting @@pcs_sitting end |
.pcs_sitting=(val) ⇒ Array
Sets the list of PCs that are sitting in the room.
106 107 108 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 106 def self.pcs_sitting=(val) @@pcs_sitting = val end |
.room_objs ⇒ Array
Returns the list of objects in the room.
125 126 127 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 125 def self.room_objs @@room_objs end |
.room_objs=(val) ⇒ Array
Sets the list of objects in the room.
132 133 134 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 132 def self.room_objs=(val) @@room_objs = val end |
.title ⇒ String
Returns the title of the room.
59 60 61 |
# File 'documented/dragonrealms/drinfomon/drroom.rb', line 59 def self.title XMLData.room_title end |