mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
aiinfo subclass inheritance cleanups, and default constructor removals for safeties
This commit is contained in:
parent
4f87ad4cf7
commit
c72c3068f8
6 changed files with 63 additions and 13 deletions
|
|
@ -27,11 +27,12 @@
|
|||
|
||||
|
||||
|
||||
struct AICover : AIInfo
|
||||
struct AICover : public AIInfo
|
||||
{
|
||||
typedef AIInfo Parent;
|
||||
/// Pointer to a cover point.
|
||||
SimObjectPtr<CoverPoint> mCoverPoint;
|
||||
AICover() = delete;
|
||||
AICover(AIController* controller) : Parent(controller) {};
|
||||
AICover(AIController* controller, SimObjectPtr<SceneObject> objIn, F32 radIn) : Parent(controller, objIn, radIn) { mCoverPoint = dynamic_cast<CoverPoint*>(objIn.getPointer());};
|
||||
AICover(AIController* controller, Point3F pointIn, F32 radIn) : Parent(controller, pointIn, radIn) {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue