mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
virtuals removed
virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
This commit is contained in:
parent
88a43f3137
commit
efbe5e90f5
255 changed files with 2164 additions and 2164 deletions
|
|
@ -91,11 +91,11 @@ public:
|
|||
|
||||
PhysicsDebrisData();
|
||||
|
||||
bool onAdd();
|
||||
bool preload( bool server, String &errorStr );
|
||||
bool onAdd() override;
|
||||
bool preload( bool server, String &errorStr ) override;
|
||||
static void initPersistFields();
|
||||
void packData( BitStream *stream );
|
||||
void unpackData( BitStream *stream );
|
||||
void packData( BitStream *stream ) override;
|
||||
void unpackData( BitStream *stream ) override;
|
||||
|
||||
void onShapeChanged() {}
|
||||
|
||||
|
|
@ -132,23 +132,23 @@ public:
|
|||
DECLARE_CATEGORY("UNLISTED");
|
||||
static void initPersistFields();
|
||||
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
|
||||
void applyImpulse( const Point3F &pos, const VectorF &vec );
|
||||
void applyRadialImpulse( const Point3F &origin, F32 radius, F32 magnitude );
|
||||
void applyImpulse( const Point3F &pos, const VectorF &vec ) override;
|
||||
void applyRadialImpulse( const Point3F &origin, F32 radius, F32 magnitude ) override;
|
||||
|
||||
protected:
|
||||
|
||||
/// The global object lifetime scalar.
|
||||
static F32 smLifetimeScale;
|
||||
|
||||
void processTick( const Move *move );
|
||||
void advanceTime( F32 dt );
|
||||
void interpolateTick( F32 delta );
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload );
|
||||
void processTick( const Move *move ) override;
|
||||
void advanceTime( F32 dt ) override;
|
||||
void interpolateTick( F32 delta ) override;
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload ) override;
|
||||
|
||||
void prepRenderImage( SceneRenderState *state );
|
||||
void prepRenderImage( SceneRenderState *state ) override;
|
||||
void prepBatchRender( SceneRenderState *state );
|
||||
|
||||
void _deleteFragments();
|
||||
|
|
|
|||
|
|
@ -59,10 +59,10 @@ public:
|
|||
RadialImpulseEvent( const Point3F &pos, F32 radius, F32 magnitude );
|
||||
~RadialImpulseEvent();
|
||||
|
||||
virtual void pack( NetConnection* /*ps*/, BitStream *bstream );
|
||||
virtual void write( NetConnection*, BitStream *bstream );
|
||||
virtual void unpack( NetConnection *ps, BitStream *bstream );
|
||||
virtual void process(NetConnection *);
|
||||
void pack( NetConnection* /*ps*/, BitStream *bstream ) override;
|
||||
void write( NetConnection*, BitStream *bstream ) override;
|
||||
void unpack( NetConnection *ps, BitStream *bstream ) override;
|
||||
void process(NetConnection *) override;
|
||||
|
||||
static void impulse( SceneContainer *con, const Point3F &position, F32 radius, F32 magnitude );
|
||||
|
||||
|
|
|
|||
|
|
@ -51,15 +51,15 @@ public:
|
|||
DECLARE_CATEGORY("UNLISTED");
|
||||
// SimObject
|
||||
static void initPersistFields();
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
|
||||
// SceneObject
|
||||
void onMount( SceneObject *obj, S32 node );
|
||||
void onUnmount( SceneObject *obj, S32 node );
|
||||
void onMount( SceneObject *obj, S32 node ) override;
|
||||
void onUnmount( SceneObject *obj, S32 node ) override;
|
||||
|
||||
// ProcessObject
|
||||
void processTick( const Move *move );
|
||||
void processTick( const Move *move ) override;
|
||||
|
||||
///
|
||||
void attach( const Point3F &start, const Point3F &direction, F32 maxDist );
|
||||
|
|
|
|||
|
|
@ -64,13 +64,13 @@ public:
|
|||
|
||||
DECLARE_CONOBJECT(PhysicsShapeData);
|
||||
static void initPersistFields();
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
|
||||
// GameBaseData
|
||||
void packData(BitStream* stream);
|
||||
void unpackData(BitStream* stream);
|
||||
bool preload(bool server, String &errorBuffer );
|
||||
void packData(BitStream* stream) override;
|
||||
void unpackData(BitStream* stream) override;
|
||||
bool preload(bool server, String &errorBuffer ) override;
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -237,28 +237,28 @@ public:
|
|||
// SimObject
|
||||
static void consoleInit();
|
||||
static void initPersistFields();
|
||||
void inspectPostApply();
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
void inspectPostApply() override;
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
|
||||
// SceneObject
|
||||
void prepRenderImage( SceneRenderState *state );
|
||||
void setTransform( const MatrixF &mat );
|
||||
F32 getMass() const;
|
||||
Point3F getVelocity() const { return mState.linVelocity; }
|
||||
void applyImpulse( const Point3F &pos, const VectorF &vec );
|
||||
void applyRadialImpulse( const Point3F &origin, F32 radius, F32 magnitude );
|
||||
void prepRenderImage( SceneRenderState *state ) override;
|
||||
void setTransform( const MatrixF &mat ) override;
|
||||
F32 getMass() const override;
|
||||
Point3F getVelocity() const override { return mState.linVelocity; }
|
||||
void applyImpulse( const Point3F &pos, const VectorF &vec ) override;
|
||||
void applyRadialImpulse( const Point3F &origin, F32 radius, F32 magnitude ) override;
|
||||
void applyTorque( const Point3F &torque );
|
||||
void applyForce( const Point3F &force );
|
||||
void setScale(const VectorF & scale);
|
||||
void setScale(const VectorF & scale) override;
|
||||
|
||||
// GameBase
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload );
|
||||
void interpolateTick( F32 delta );
|
||||
void processTick( const Move *move );
|
||||
void advanceTime( F32 timeDelta );
|
||||
U32 packUpdate( NetConnection *conn, U32 mask, BitStream *stream );
|
||||
void unpackUpdate( NetConnection *conn, BitStream *stream );
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload ) override;
|
||||
void interpolateTick( F32 delta ) override;
|
||||
void processTick( const Move *move ) override;
|
||||
void advanceTime( F32 timeDelta ) override;
|
||||
U32 packUpdate( NetConnection *conn, U32 mask, BitStream *stream ) override;
|
||||
void unpackUpdate( NetConnection *conn, BitStream *stream ) override;
|
||||
|
||||
bool isDestroyed() const { return mDestroyed; }
|
||||
void destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue