#include <TurretAI.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| TurretAIData () | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Static Public Member Functions | |
| static void | buildFieldParse (MultiIniFieldParse &p) |
| static void | parseTurretSweep (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseTurretSweepSpeed (INI *ini, void *instance, void *store, const void *userData) |
Public Attributes | |
| Real | m_turnRate |
| Real | m_pitchRate |
| Real | m_naturalTurretAngle |
| Real | m_naturalTurretPitch |
| Real | m_turretFireAngleSweep [WEAPONSLOT_COUNT] |
| if nonzero, sweep within +/- this angle range while firing | |
| Real | m_turretSweepSpeedModifier [WEAPONSLOT_COUNT] |
| While sweeping, change your speed by this. | |
| Real | m_firePitch |
| if nonzero, I am on target at this fixed pitch, not when pointing at target | |
| Real | m_minPitch |
| dependent on allowspitch. defaults to 0 (horizontal). The lowest pitch allowed (negative to allow pointing down of a high turret) | |
| Real | m_groundUnitPitch |
| dependent on allowspitch. defaults to 0 (horizontal). The lowest pitch allowed when firing at ground units to give the weapon an arc. jba | |
| UnsignedInt | m_turretWeaponSlots |
| which WeaponSlots are controlled by this turret | |
| Real | m_minIdleScanAngle |
| max angle the turret can turn while idling | |
| Real | m_maxIdleScanAngle |
| max angle the turret can turn while idling | |
| UnsignedInt | m_minIdleScanInterval |
| min interval between idle scans | |
| UnsignedInt | m_maxIdleScanInterval |
| max interval between idle scans | |
| UnsignedInt | m_recenterTime |
| time to wait before recentering turret | |
| Bool | m_initiallyDisabled |
| manually controlled and disabled. | |
| Bool | m_firesWhileTurning |
| so the firing state does not instantly expire the turning state | |
| Bool | m_isAllowsPitch |
| This type of turret can pitch up and down as well as spin. | |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 216 of file TurretAI.h.
| TurretAIData::TurretAIData | ( | ) |
Definition at line 176 of file TurretAI.cpp.
|
static |
Definition at line 236 of file TurretAI.cpp.
|
static |
Definition at line 220 of file TurretAI.cpp.
|
static |
Definition at line 228 of file TurretAI.cpp.
| Real TurretAIData::m_firePitch |
if nonzero, I am on target at this fixed pitch, not when pointing at target
Definition at line 226 of file TurretAI.h.
| Bool TurretAIData::m_firesWhileTurning |
so the firing state does not instantly expire the turning state
Definition at line 239 of file TurretAI.h.
| Real TurretAIData::m_groundUnitPitch |
dependent on allowspitch. defaults to 0 (horizontal). The lowest pitch allowed when firing at ground units to give the weapon an arc. jba
Definition at line 228 of file TurretAI.h.
| Bool TurretAIData::m_initiallyDisabled |
manually controlled and disabled.
Definition at line 238 of file TurretAI.h.
| Bool TurretAIData::m_isAllowsPitch |
This type of turret can pitch up and down as well as spin.
Definition at line 240 of file TurretAI.h.
| Real TurretAIData::m_maxIdleScanAngle |
max angle the turret can turn while idling
Definition at line 234 of file TurretAI.h.
| UnsignedInt TurretAIData::m_maxIdleScanInterval |
max interval between idle scans
Definition at line 236 of file TurretAI.h.
| Real TurretAIData::m_minIdleScanAngle |
max angle the turret can turn while idling
Definition at line 233 of file TurretAI.h.
| UnsignedInt TurretAIData::m_minIdleScanInterval |
min interval between idle scans
Definition at line 235 of file TurretAI.h.
| Real TurretAIData::m_minPitch |
dependent on allowspitch. defaults to 0 (horizontal). The lowest pitch allowed (negative to allow pointing down of a high turret)
Definition at line 227 of file TurretAI.h.
| Real TurretAIData::m_naturalTurretAngle |
Definition at line 222 of file TurretAI.h.
| Real TurretAIData::m_naturalTurretPitch |
Definition at line 223 of file TurretAI.h.
| Real TurretAIData::m_pitchRate |
Definition at line 221 of file TurretAI.h.
| UnsignedInt TurretAIData::m_recenterTime |
time to wait before recentering turret
Definition at line 237 of file TurretAI.h.
| Real TurretAIData::m_turnRate |
Definition at line 220 of file TurretAI.h.
| Real TurretAIData::m_turretFireAngleSweep[WEAPONSLOT_COUNT] |
if nonzero, sweep within +/- this angle range while firing
Definition at line 224 of file TurretAI.h.
| Real TurretAIData::m_turretSweepSpeedModifier[WEAPONSLOT_COUNT] |
While sweeping, change your speed by this.
Definition at line 225 of file TurretAI.h.
| UnsignedInt TurretAIData::m_turretWeaponSlots |
which WeaponSlots are controlled by this turret
Definition at line 229 of file TurretAI.h.