Class TRoom
Unit
Declaration
type TRoom = class(TObject)
Description
Class representing a room on the map.
Hierarchy
- TObject
- TRoom
Overview
Methods
![]() |
constructor Create(aconnections: TRoomConnections; afields: tfields; adescription: string); |
![]() |
procedure connect(adir: tdirection; aroom_id: integer); |
![]() |
function get_connection(adir: tdirection): integer; |
Properties
![]() |
property description: string read _description; |
![]() |
property fields: tfields read _fields; |
Description
Methods
![]() |
constructor Create(aconnections: TRoomConnections; afields: tfields; adescription: string); |
|
constructor for a new room on the map. Parameters
ReturnsA new instance of | |
![]() |
procedure connect(adir: tdirection; aroom_id: integer); |
|
Prcoedure to connect an other room to on of the direction from the room. Parameters
| |
![]() |
function get_connection(adir: tdirection): integer; |
|
Function returning the connection that exists in the specified direction. Parameters
ReturnsInteger The id of the room that lays in that direction. Returns -1 if no room is connected. | |
Properties
![]() |
property description: string read _description; |
|
Read-only String-property containing the room description. | |
![]() |
property fields: tfields read _fields; |
|
Read-only Array-property containing the fields in the room. | |
Generated by PasDoc 0.16.0.
