A* Pathfinding Project
4.3.5
The A* Pathfinding Project for Unity 3D
|
Public Types | |
enum | Type { Infantry, Heavy, Worker, Harvester, HarvesterDropoff = 100, HarvesterDropoffQueue, ResourceCrystal = 200 } |
Public Member Functions | |
void | ApplyDamage (float damage) |
void | Die () |
void | OnMakeActiveUnit (bool active) |
void | SetDestination (Vector3 destination, MovementMode mode) |
Public Attributes | |
GameObject | deathEffect |
float | detectionRange |
float | health |
bool | locked |
float | maxHealth |
System.Action< bool > | onMakeActiveUnit |
RTSUnit | reservedBy |
GameObject | selectionIndicator |
int | storedCrystals |
int | team |
Type | type |
Protected Member Functions | |
override void | Awake () |
virtual void | OnUpdate (List< RTSUnit >[] unitsByOwner) |
![]() | |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. More... | |
virtual void | Reset () |
Handle serialization backwards compatibility. More... | |
Protected Attributes | |
Vector3 | position |
Position at the start of the current frame. More... | |
Properties | |
RTSPlayer | owner [get] |
float | radius [get] |
RTSHarvestableResource | resource [get] |
bool | selected [get, set] |
bool | selectionIndicatorEnabled [get, set] |
![]() | |
int Util.IEntityIndex. | EntityIndex [get, set] |
Internal entity index used by #BurstBatchHelper. More... | |
![]() | |
int | EntityIndex [get, set] |
Private Member Functions | |
IEnumerator | DieCoroutine () |
void | OnDisable () |
void | OnEnable () |
Static Private Member Functions | |
static void | OnUpdate (RTSUnit[] units, int count) |
Private Attributes | |
IAstarAI | ai |
RTSUnit | attackTarget |
Vector3 | lastDestination |
float | lastSeenAttackTarget = float.NegativeInfinity |
MovementMode | movementMode |
bool | mSelected |
bool | reachedDestination |
RVOController | rvo |
new Transform | transform |
RTSWeapon | weapon |
Static Private Attributes | |
static System.Action< RTSUnit[], int > | OnUpdateDelegate |
|
strong |
void ApplyDamage | ( | float | damage | ) |
|
protectedvirtual |
Reimplemented from VersionedMonoBehaviour.
void Die | ( | ) |
|
private |
|
private |
|
private |
void OnMakeActiveUnit | ( | bool | active | ) |
|
staticprivate |
|
protectedvirtual |
void SetDestination | ( | Vector3 | destination, |
MovementMode | mode | ||
) |
|
private |
|
private |
GameObject deathEffect |
float detectionRange |
float health |
|
private |
|
private |
bool locked |
float maxHealth |
|
private |
|
private |
System.Action<bool> onMakeActiveUnit |
|
staticprivate |
|
protected |
Position at the start of the current frame.
|
private |
RTSUnit reservedBy |
|
private |
GameObject selectionIndicator |
int storedCrystals |
int team |
|
private |
Type type |
|
private |
|
get |
|
get |
|
get |
|
getset |
|
getset |