mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 14:25:38 +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
|
|
@ -109,12 +109,12 @@ protected:
|
|||
//-------------------------------------------------------
|
||||
// Standard engine functions
|
||||
//-------------------------------------------------------
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream);
|
||||
void unpackUpdate(NetConnection *conn, BitStream *stream);
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream) override;
|
||||
void unpackUpdate(NetConnection *conn, BitStream *stream) override;
|
||||
|
||||
bool castRay(const Point3F &start, const Point3F &end, RayInfo* info);
|
||||
bool castRay(const Point3F &start, const Point3F &end, RayInfo* info) override;
|
||||
|
||||
public:
|
||||
WaterBlock();
|
||||
|
|
@ -123,31 +123,31 @@ public:
|
|||
DECLARE_CONOBJECT(WaterBlock);
|
||||
|
||||
static void initPersistFields();
|
||||
void onStaticModified( const char* slotName, const char*newValue = NULL );
|
||||
virtual void inspectPostApply();
|
||||
virtual void setTransform( const MatrixF & mat );
|
||||
virtual void setScale( const Point3F &scale );
|
||||
virtual bool buildPolyList( PolyListContext context, AbstractPolyList* polyList, const Box3F& box, const SphereF& sphere );
|
||||
void onStaticModified( const char* slotName, const char*newValue = NULL ) override;
|
||||
void inspectPostApply() override;
|
||||
void setTransform( const MatrixF & mat ) override;
|
||||
void setScale( const Point3F &scale ) override;
|
||||
bool buildPolyList( PolyListContext context, AbstractPolyList* polyList, const Box3F& box, const SphereF& sphere ) override;
|
||||
|
||||
// WaterObject
|
||||
virtual F32 getWaterCoverage( const Box3F &worldBox ) const;
|
||||
virtual F32 getSurfaceHeight( const Point2F &pos ) const;
|
||||
virtual bool isUnderwater( const Point3F &pnt ) const;
|
||||
F32 getWaterCoverage( const Box3F &worldBox ) const override;
|
||||
F32 getSurfaceHeight( const Point2F &pos ) const override;
|
||||
bool isUnderwater( const Point3F &pnt ) const override;
|
||||
|
||||
// WaterBlock
|
||||
bool isPointSubmerged ( const Point3F &pos, bool worldSpace = true ) const{ return true; }
|
||||
|
||||
// SceneObject.
|
||||
virtual F32 distanceTo( const Point3F& pos ) const;
|
||||
F32 distanceTo( const Point3F& pos ) const override;
|
||||
|
||||
protected:
|
||||
|
||||
// WaterObject
|
||||
virtual void setShaderParams( SceneRenderState *state, BaseMatInstance *mat, const WaterMatParams ¶mHandles );
|
||||
void setShaderParams( SceneRenderState *state, BaseMatInstance *mat, const WaterMatParams ¶mHandles ) override;
|
||||
virtual SceneData setupSceneGraphInfo( SceneRenderState *state );
|
||||
virtual void setupVBIB();
|
||||
virtual void innerRender( SceneRenderState *state );
|
||||
virtual void _getWaterPlane( const Point3F &camPos, PlaneF &outPlane, Point3F &outPos );
|
||||
void setupVBIB() override;
|
||||
void innerRender( SceneRenderState *state ) override;
|
||||
void _getWaterPlane( const Point3F &camPos, PlaneF &outPlane, Point3F &outPos ) override;
|
||||
};
|
||||
|
||||
#endif // _WATERBLOCK_H_
|
||||
|
|
|
|||
|
|
@ -156,20 +156,20 @@ public:
|
|||
static void initPersistFields();
|
||||
|
||||
// SimObject
|
||||
virtual bool onAdd();
|
||||
virtual void onRemove();
|
||||
virtual void inspectPostApply();
|
||||
virtual bool processArguments(S32 argc, ConsoleValue *argv);
|
||||
bool onAdd() override;
|
||||
void onRemove() override;
|
||||
void inspectPostApply() override;
|
||||
bool processArguments(S32 argc, ConsoleValue *argv) override;
|
||||
|
||||
// NetObject
|
||||
virtual U32 packUpdate( NetConnection * conn, U32 mask, BitStream *stream );
|
||||
virtual void unpackUpdate( NetConnection * conn, BitStream *stream );
|
||||
U32 packUpdate( NetConnection * conn, U32 mask, BitStream *stream ) override;
|
||||
void unpackUpdate( NetConnection * conn, BitStream *stream ) override;
|
||||
|
||||
// SceneObject
|
||||
virtual void prepRenderImage( SceneRenderState *state );
|
||||
void prepRenderImage( SceneRenderState *state ) override;
|
||||
virtual void renderObject( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat );
|
||||
virtual SFXAmbience* getSoundAmbience() const { return mSoundAmbience; }
|
||||
virtual bool containsPoint( const Point3F& point ) { return isUnderwater( point ); }
|
||||
SFXAmbience* getSoundAmbience() const override { return mSoundAmbience; }
|
||||
bool containsPoint( const Point3F& point ) override { return isUnderwater( point ); }
|
||||
|
||||
// WaterObject
|
||||
virtual F32 getViscosity() const { return mViscosity; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue