HoverRace
2.0
|
Used to test and build new FreeElements. More...
#include <TestElement.h>
Classes | |
struct | Cylinder |
Public Member Functions | |
TestElement (ObjFacTools::ResourceLib &resourceLib, int pActorRes) | |
~TestElement () | |
int | Simulate (MR_SimulationTime pDuration, Model::Track &track, int pRoom) override |
Advance the simulation. More... | |
![]() | |
FreeElementBase (const Util::ObjectFromFactoryId &id) | |
~FreeElementBase () | |
void | Render (VideoServices::Viewport3D *pDest, MR_SimulationTime pTime) override |
![]() | |
FreeElement (const Util::ObjectFromFactoryId &id={0, 0}) | |
virtual | ~FreeElement () |
virtual bool | AssignPermNumber (int pNumber) |
Assign a permanent hook number. More... | |
virtual ElementNetState | GetNetState () const |
virtual void | PlayExternalSounds (int pDB, int pPan) |
virtual void | PlayInternalSounds () |
virtual void | SetNetState (int pDataLen, const MR_UInt8 *pData) |
virtual void | SetOwnerId (int pOwnerId) |
![]() | |
Element (const Util::ObjectFromFactoryId &id) | |
virtual | ~Element () |
virtual void | AddRenderer () |
void | ApplyEffects (const ContactEffectList *pList, MR_SimulationTime pTime, MR_SimulationTime pDuration, BOOL pValidDirection, MR_Angle pHorizontalDirection, MR_Int32 pZMin, MR_Int32 pZMax, Track &track) |
void | Serialize (Parcel::ObjStream &) overridefinal |
![]() | |
ObjectFromFactory (const ObjectFromFactoryId &pId) noexcept | |
virtual | ~ObjectFromFactory () |
const ObjectFromFactoryId & | GetTypeId () const noexcept |
Protected Member Functions | |
void | ApplyEffect (const Model::ContactEffect *pEffect, MR_SimulationTime pTime, MR_SimulationTime pDuration, BOOL pValidDirection, MR_Angle pHorizontalDirection, MR_Int32 pZMin, MR_Int32 pZMax, Model::Track &track) override |
const Model::ContactEffectList * | GetEffectList () override |
const Model::ShapeInterface * | GetGivingContactEffectShape () override |
Get the shape that gives an effect when touching while moving. More... | |
const Model::ShapeInterface * | GetObstacleShape () override |
Get the shape that stops other elements' movement. More... | |
const Model::ShapeInterface * | GetReceivingContactEffectShape () override |
Get the shape that gives an effect when touched by a moving element. More... | |
Private Types | |
using | SUPER = ObjFacTools::FreeElementBase |
Additional Inherited Members | |
![]() | |
template<class T > | |
static void | SerializeShared (Parcel::ObjStream &archive, typename std::enable_if< std::is_base_of< ObjectFromFactory, T >::value, std::shared_ptr< T >>::type &obj) |
Serialize a shared pointer to a serializable object. More... | |
![]() | |
MR_Angle | mOrientation |
MR_3DCoordinate | mPosition |
![]() | |
const ResActor * | mActor |
int | mCurrentFrame |
int | mCurrentSequence |
Used to test and build new FreeElements.
|
private |
HoverRace::ObjFac1::TestElement::TestElement | ( | ObjFacTools::ResourceLib & | resourceLib, |
int | pActorRes | ||
) |
|
inline |
|
overrideprotectedvirtual |
Reimplemented from HoverRace::Model::Element.
|
overrideprotectedvirtual |
Reimplemented from HoverRace::Model::Element.
|
overrideprotectedvirtual |
Get the shape that gives an effect when touching while moving.
nullptr
if none. Reimplemented from HoverRace::Model::FreeElement.
|
overrideprotectedvirtual |
Get the shape that stops other elements' movement.
nullptr
if none. Reimplemented from HoverRace::Model::FreeElement.
|
overrideprotectedvirtual |
Get the shape that gives an effect when touched by a moving element.
nullptr
if none. Reimplemented from HoverRace::Model::FreeElement.
|
overridevirtual |
Advance the simulation.
pTimeSlice | The time slice to simulate over. |
track | The track. |
pRoom | The room number. |
Reimplemented from HoverRace::Model::FreeElement.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |