Class TMap
Unit
Declaration
type TMap = class(TObject)
Description
Class representing the map and all object placed on it.
Hierarchy
- TObject
- TMap
Overview
Methods
![]() |
constructor Create(aplayer: TPlayer; astart_room: integer = 0); |
![]() |
procedure add_room(aroom: TRoom); |
![]() |
function move_player(adir: string): boolean; |
![]() |
procedure Free; |
Properties
![]() |
property current_room: TRoom read _get_current_room; |
![]() |
property current_field: TField read _get_current_field; |
![]() |
property current_field_idx: integer read _current_field; |
![]() |
property current_room_idx: integer read _current_room; |
![]() |
property start_room: integer read _start_room; |
![]() |
property player: TPlayer read _player; |
Description
Methods
![]() |
constructor Create(aplayer: TPlayer; astart_room: integer = 0); |
|
constructor for a new map Parameters
ReturnsA new instance of | |
![]() |
procedure add_room(aroom: TRoom); |
|
Procedure to add a new room to the map. Parameters
| |
![]() |
procedure Free; |
|
procedure to clean up memory after use. | |
Properties
![]() |
property current_room: TRoom read _get_current_room; |
|
Read-only Object-property representing the room the player currently is in. | |
![]() |
property current_field: TField read _get_current_field; |
|
Read-only Object-property representing the field the player currently is on. | |
![]() |
property current_field_idx: integer read _current_field; |
|
Read-only Integer-property representing the 1d-index of the field the player is currently on. | |
![]() |
property current_room_idx: integer read _current_room; |
![]() |
property start_room: integer read _start_room; |
![]() |
property player: TPlayer read _player; |
|
Read-only Object-property that represents the player on the map. | |
Generated by PasDoc 0.16.0.
