Class TCastleDamage
Unit
Declaration
type TCastleDamage = class(TCastleComponent)
Description
Damage done by something (like short-range attack of TCastleMoveAttack or missile impact of TCastleMissile).
Hierarchy
- TObject
 - TPersistent
 - TComponent
 - TCastleComponent
 - TCastleDamage
 
Overview
Fields
![]()  | 
nested const DefaultDamageConst = 0.0; | 
![]()  | 
nested const DefaultDamageRandom = 0.0; | 
![]()  | 
nested const DefaultKnockbackDistance = 0.0; | 
Methods
![]()  | 
constructor Create(AOwner: TComponent); override; | 
Properties
![]()  | 
property DamageConst: Single
      read FDamageConst write FDamageConst
      default DefaultDamageConst; | 
![]()  | 
property DamageRandom: Single
      read FDamageRandom write FDamageRandom
      default DefaultDamageRandom; | 
![]()  | 
property KnockbackDistance: Single
      read FKnockbackDistance write FKnockbackDistance
      default DefaultKnockbackDistance; | 
Description
Fields
![]()  | 
nested const DefaultDamageConst = 0.0; | 
| 
 This item has no description.  | |
![]()  | 
nested const DefaultDamageRandom = 0.0; | 
| 
 This item has no description.  | |
![]()  | 
nested const DefaultKnockbackDistance = 0.0; | 
| 
 This item has no description.  | |
Methods
![]()  | 
constructor Create(AOwner: TComponent); override; | 
| 
 This item has no description.  | |
Properties
![]()  | 
property DamageConst: Single
      read FDamageConst write FDamageConst
      default DefaultDamageConst; | 
| 
 Constant damage. Decreases the victim's TCastleLiving.Life by a constant amount. The complete damage dealt is a random float in the range  Both   | |
![]()  | 
property DamageRandom: Single
      read FDamageRandom write FDamageRandom
      default DefaultDamageRandom; | 
| 
 Random damage. Decreases the victim's TCastleLiving.Life by a random amount. The complete damage dealt is a random float in the range  Both DamageConst and   | |
![]()  | 
property KnockbackDistance: Single
      read FKnockbackDistance write FKnockbackDistance
      default DefaultKnockbackDistance; | 
| 
 Attack knockback (how far will the victim be pushed back) done by the short-range attack. Must be >= 0. Value equal exactly 0 disables any knockback.  | |
Generated by PasDoc 0.16.0-snapshot.

