A* Pathfinding Project  4.1.10
The A* Pathfinding Project for Unity 3D
RTSWeapon Class Reference

Public Member Functions

virtual bool Aim (RTSUnit target)
 
virtual void Attack (RTSUnit target)
 
bool InRangeOf (Vector3 point)
 

Public Attributes

float attackDuration
 
bool canMoveWhileAttacking = false
 
float cooldown
 
float range
 
bool ranged
 

Properties

bool isAttacking [get]
 

Private Attributes

float lastAttackTime = float.NegativeInfinity
 

Member Function Documentation

◆ Aim()

virtual bool Aim ( RTSUnit  target)
virtual

Reimplemented in RTSWeaponSimpleRanged.

◆ Attack()

virtual void Attack ( RTSUnit  target)
virtual

Reimplemented in RTSWeaponSimpleRanged.

◆ InRangeOf()

bool InRangeOf ( Vector3  point)

Member Data Documentation

◆ attackDuration

float attackDuration

◆ canMoveWhileAttacking

bool canMoveWhileAttacking = false

◆ cooldown

float cooldown

◆ lastAttackTime

float lastAttackTime = float.NegativeInfinity
private

◆ range

float range

◆ ranged

bool ranged

Property Documentation

◆ isAttacking

bool isAttacking
get

The documentation for this class was generated from the following file: