| DtWeaponInfoList::DtWeaponInfoList |
( |
DtLocalObject * |
localObject | ) |
|
| virtual DtWeaponInfoList::~DtWeaponInfoList |
( |
| ) |
|
|
virtual |
| virtual bool DtWeaponInfoList::init |
( |
| ) |
|
|
virtual |
Initialization - must be called before any other member functions are called Registers message callsbacks.
Adds a new weapon info. This should only be called by weapon controllers to add information about themselves.
- Parameters
-
| reqestedId | must not already exist in the weapon info list. If it does, this will not be added. |
- Returns
- True if it was successfully added.
Removes a previously added weapon interface.
| virtual bool DtWeaponInfoList::blockedByOtherWeapon |
( |
const DtString & |
weaponId, |
|
|
DtString & |
blockingWeaponId |
|
) |
| const |
|
virtual |
Checks for dependencies (based on art parts and tokens) between weaponId and other weapons in this list. If any are found, returns true, and returns the blocking weapon ID. This only returns true if the blocking weapon is currently busy and of higher priority.
| virtual bool DtWeaponInfoList::weaponsConflict |
( |
const DtString & |
weapon1Id, |
|
|
const DtString & |
weapon2Id |
|
) |
| const |
|
virtual |
- Returns
- true of these two weapons would conflict if they were used at the same time (based on art parts and tokens). Does not check priorities or any current state of the weapon, such as the busy status.
| virtual DtString DtWeaponInfoList::weaponIdFromOldWeaponString |
( |
const DtString & |
pre51WeaponString | ) |
const |
|
virtual |
Attempts to find the weapon ID that best matches the string that was used in earlier versions of VRF to identify weapons, which in most cases was the display name. This is used to help convert loaded tasks from older versions of VRF into VRF 5.1 and newer.
- Note
- If a correct weapon ID is passed here, that will be detected and returned.
| static void DtWeaponInfoList::weaponListRequestCallback |
( |
const DtVrfObjectMessage * |
msg, |
|
|
void * |
usr |
|
) |
| |
|
static |
Responds to weapon list requests with list of weapon names associated with this entity.
Responds to weapon list requests with list of weapon names associated with this entity.
Lookup the DtWeaponSystemType based on the DtSimTaskMessageType Used for pre VRF-5.1 scenarios - should be deprecated.
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-2-branch/include/vrfobjcore/weaponInfoList.h