-
Notifications
You must be signed in to change notification settings - Fork 17
Game Objects
Every object in the game is a so-called "game object". This includes characters, room, items, etc.. Here is an overview of all the game objects that are currently defined.
GameObject
GameObject is the basic type that all game objects adhere to. It defines many useful properties and methods applicable to all other objects.
Character
Characters are in-game characters. There are two major types of characters: players and non-playing characters (NPCs). The former are controlled by human players, the latter aren't.
Every Character is also a StatsItem and inherits the methods and properties from StatsItem.
Exit
Exits provide a way for characters to move from one room to another. Exits are not created in their own right. Instead, the are generated from the definitions of portals between rooms.
Group
A group is not a physical or tangible entity. Instead, it simply defines which characters form a group or party together.
Class
A Class defines the class of a character. For example, "knight", "soldier", "mage".
Container
Containers are items that may contain other items.
Every Container is also an Item and inherits the methods and properties from Item.
Event
Event is a template object from which visual, sound, or other game events may be generated.
Item
Every item you may see or collect (weapons, potions, decorative items in rooms, etc..) is an Item. When talking about items we typically don't include characters even though technically, characters are also items. This make them share common properties and methods with items.
Player
Players are player-controlled characters.
Every Player is also a Character and inherits the methods and properties from Character.
Portals
Portals are connections between two rooms. They may be used by characters to move between rooms, though not all portals allow this. Portals can also be created so that they only allow sounds or visuals to travel between rooms.
Race
A Race defines the race of a character. For example, "human", "animal", "elf".
Realm
The Realm encompasses the entire game world. There is only one Realm, and it used for tracking things that affect the entire game world, no, realm.
Room
Rooms are locations where characters can be. They may be actual physical rooms, but really any place where you can go to counts.
Shield
Shield are items that can be used for defensive purposes.
Every Shield is also a StatsItem and inherits the methods and properties from StatsItem.
StatsItem
Stats items are items which have associated character stats. They may have modifiers attached that modify the current effective stats.
Every StatsItem is also an Item and inherits the methods and properties from Item.
Weapon
Weapons are items that can be used for attacking characters.
Every Weapon is also a StatsItem and inherits the methods and properties from StatsItem.