mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #1990 from AlexBarys/AITurretClearIgnoreList
Ai turret clear ignore list
This commit is contained in:
commit
78492438d4
2 changed files with 13 additions and 0 deletions
|
|
@ -564,6 +564,11 @@ void AITurretShape::removeFromIgnoreList(ShapeBase* obj)
|
||||||
mIgnoreObjects.removeObject(obj);
|
mIgnoreObjects.removeObject(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AITurretShape::clearIgnoreList()
|
||||||
|
{
|
||||||
|
mIgnoreObjects.clear();
|
||||||
|
}
|
||||||
|
|
||||||
S32 AITurretShape::ignoreListCount()
|
S32 AITurretShape::ignoreListCount()
|
||||||
{
|
{
|
||||||
return mIgnoreObjects.size();
|
return mIgnoreObjects.size();
|
||||||
|
|
@ -1254,6 +1259,13 @@ DefineEngineMethod( AITurretShape, removeFromIgnoreList, void, (ShapeBase* obj),
|
||||||
object->removeFromIgnoreList(obj);
|
object->removeFromIgnoreList(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DefineEngineMethod( AITurretShape, clearIgnoreList, void, (),,
|
||||||
|
"@brief Removes all objects from the turret's ignore list.\n\n"
|
||||||
|
"All objects in this list will be ignored by the turret's targeting.\n")
|
||||||
|
{
|
||||||
|
object->clearIgnoreList();
|
||||||
|
}
|
||||||
|
|
||||||
DefineEngineMethod( AITurretShape, ignoreListCount, S32, (),,
|
DefineEngineMethod( AITurretShape, ignoreListCount, S32, (),,
|
||||||
"@brief Returns the number of objects in the turrets ignore list.\n\n"
|
"@brief Returns the number of objects in the turrets ignore list.\n\n"
|
||||||
"All objects in this list will be ignored by the turret's targeting.\n")
|
"All objects in this list will be ignored by the turret's targeting.\n")
|
||||||
|
|
|
||||||
|
|
@ -257,6 +257,7 @@ public:
|
||||||
|
|
||||||
void addToIgnoreList(ShapeBase* obj);
|
void addToIgnoreList(ShapeBase* obj);
|
||||||
void removeFromIgnoreList(ShapeBase* obj);
|
void removeFromIgnoreList(ShapeBase* obj);
|
||||||
|
void clearIgnoreList();
|
||||||
S32 ignoreListCount();
|
S32 ignoreListCount();
|
||||||
SimObject* getIgnoreListObject(S32 index);
|
SimObject* getIgnoreListObject(S32 index);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue