Class TPlayer
Unit
Declaration
type TPlayer = class(TEntity)
Description
A class representing the Player.
It inherits most of its interface from its parent: TEntity. Additionally some following fields are defined
The following fields are redefined.
Hierarchy
- TObject
- TEntity
- TPlayer
Overview
Methods
![]() |
constructor Create(aname, aklasse: string; ahealth, adamage: integer); |
![]() |
procedure print_stats; |
![]() |
function attack(aenemy: TEntity): integer; |
Properties
![]() |
property klasse: string read _klasse; |
![]() |
property inventory: TInventory read _inventory; |
Description
Methods
![]() |
procedure print_stats; |
|
Procedure to print the current stats of the player. | |
![]() |
function attack(aenemy: TEntity): integer; |
Properties
![]() |
property klasse: string read _klasse; |
|
Read-only String-property representing the players "league". | |
![]() |
property inventory: TInventory read _inventory; |
Generated by PasDoc 0.16.0.
