Class TInventory

Unit

Declaration

type TInventory = class(TObject)

Description

A class defining and implementing the functionality of the players inventory.

Hierarchy

Overview

Methods

Public constructor Create;
Public procedure print;

Properties

Public property weapon: TWeapon read _weapon_slot write _weapon_slot;
Public property armor: TArmor read _armor_slot write _armor_slot;
Public property slots[idx:integer]: TItem read _getInventorySlot write _setInventorySlot;

Description

Methods

Public constructor Create;

Constructor for a new inventory

Returns

A new TInventory instance

Public procedure print;

Procedure to print out the inventory.

Properties

Public property weapon: TWeapon read _weapon_slot write _weapon_slot;

Object-property representing the slot a player can put his weapon in.

Public property armor: TArmor read _armor_slot write _armor_slot;

Object-property representing the slot a player can put his armor in.

Public property slots[idx:integer]: TItem read _getInventorySlot write _setInventorySlot;

Array-property representing the rest of the slots the player can put in whatever he wants.


Generated by PasDoc 0.16.0.