Class TInventory
Unit
Declaration
type TInventory = class(TObject)
Description
A class defining and implementing the functionality of the players inventory.
Hierarchy
- TObject
- TInventory
Overview
Methods
![]() |
constructor Create; |
![]() |
procedure print; |
Properties
![]() |
property weapon: TWeapon read _weapon_slot write _weapon_slot; |
![]() |
property armor: TArmor read _armor_slot write _armor_slot; |
![]() |
property slots[idx:integer]: TItem read _getInventorySlot write _setInventorySlot; |
Description
Methods
![]() |
constructor Create; |
|
Constructor for a new inventory ReturnsA new | |
![]() |
procedure print; |
|
Procedure to print out the inventory. | |
Properties
![]() |
property weapon: TWeapon read _weapon_slot write _weapon_slot; |
|
Object-property representing the slot a player can put his weapon in. | |
![]() |
property armor: TArmor read _armor_slot write _armor_slot; |
|
Object-property representing the slot a player can put his armor in. | |
![]() |
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.
