Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TurretAIData Class Reference

#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 MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 216 of file TurretAI.h.

Constructor & Destructor Documentation

◆ TurretAIData()

TurretAIData::TurretAIData ( )

Definition at line 176 of file TurretAI.cpp.

Member Function Documentation

◆ buildFieldParse()

void TurretAIData::buildFieldParse ( MultiIniFieldParse & p)
static

Definition at line 236 of file TurretAI.cpp.

◆ parseTurretSweep()

void TurretAIData::parseTurretSweep ( INI * ini,
void * instance,
void * store,
const void * userData )
static

Definition at line 220 of file TurretAI.cpp.

◆ parseTurretSweepSpeed()

void TurretAIData::parseTurretSweepSpeed ( INI * ini,
void * instance,
void * store,
const void * userData )
static

Definition at line 228 of file TurretAI.cpp.

Member Data Documentation

◆ m_firePitch

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.

◆ m_firesWhileTurning

Bool TurretAIData::m_firesWhileTurning

so the firing state does not instantly expire the turning state

Definition at line 239 of file TurretAI.h.

◆ m_groundUnitPitch

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.

◆ m_initiallyDisabled

Bool TurretAIData::m_initiallyDisabled

manually controlled and disabled.

Definition at line 238 of file TurretAI.h.

◆ m_isAllowsPitch

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.

◆ m_maxIdleScanAngle

Real TurretAIData::m_maxIdleScanAngle

max angle the turret can turn while idling

Definition at line 234 of file TurretAI.h.

◆ m_maxIdleScanInterval

UnsignedInt TurretAIData::m_maxIdleScanInterval

max interval between idle scans

Definition at line 236 of file TurretAI.h.

◆ m_minIdleScanAngle

Real TurretAIData::m_minIdleScanAngle

max angle the turret can turn while idling

Definition at line 233 of file TurretAI.h.

◆ m_minIdleScanInterval

UnsignedInt TurretAIData::m_minIdleScanInterval

min interval between idle scans

Definition at line 235 of file TurretAI.h.

◆ m_minPitch

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.

◆ m_naturalTurretAngle

Real TurretAIData::m_naturalTurretAngle

Definition at line 222 of file TurretAI.h.

◆ m_naturalTurretPitch

Real TurretAIData::m_naturalTurretPitch

Definition at line 223 of file TurretAI.h.

◆ m_pitchRate

Real TurretAIData::m_pitchRate

Definition at line 221 of file TurretAI.h.

◆ m_recenterTime

UnsignedInt TurretAIData::m_recenterTime

time to wait before recentering turret

Definition at line 237 of file TurretAI.h.

◆ m_turnRate

Real TurretAIData::m_turnRate

Definition at line 220 of file TurretAI.h.

◆ m_turretFireAngleSweep

Real TurretAIData::m_turretFireAngleSweep[WEAPONSLOT_COUNT]

if nonzero, sweep within +/- this angle range while firing

Definition at line 224 of file TurretAI.h.

◆ m_turretSweepSpeedModifier

Real TurretAIData::m_turretSweepSpeedModifier[WEAPONSLOT_COUNT]

While sweeping, change your speed by this.

Definition at line 225 of file TurretAI.h.

◆ m_turretWeaponSlots

UnsignedInt TurretAIData::m_turretWeaponSlots

which WeaponSlots are controlled by this turret

Definition at line 229 of file TurretAI.h.


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