Class TEntity
Unit
Declaration
type TEntity = class(TObject)
Description
Class to represent living things on the map (entities).
- Warning
- This is an "abstract" class and shouldn't be used directly, but instead through one of its subclasses
Hierarchy
- TObject
- TEntity
Overview
Methods
![]() |
constructor Create(aname: string; ahealth, adamage: integer); |
![]() |
function attack(aenemy: TEntity): integer; |
Properties
![]() |
property health: integer read _health write _set_health; |
![]() |
property is_alive: boolean read _is_alive; |
![]() |
property max_health: integer read _max_health; |
![]() |
property Name: string read _name; |
![]() |
property damage: integer read _damage; |
Description
Methods
![]() |
function attack(aenemy: TEntity): integer; |
|
Procedure to attack other entities. Parameters
| |
Properties
![]() |
property health: integer read _health write _set_health; |
|
Integer-Property representing the entities current health. | |
![]() |
property is_alive: boolean read _is_alive; |
|
Read-only Boolean-Property indicating if the entity is still alive. | |
![]() |
property max_health: integer read _max_health; |
![]() |
property Name: string read _name; |
|
Read-only String-Property containing the name of the entity. | |
![]() |
property damage: integer read _damage; |
|
Read-only Integer-property representing the damage the entity makes without weapons. | |
Generated by PasDoc 0.16.0.
