69 void *
operator new(
size_t nSize);
78 void operator delete(
void *pBlock);
432 void SetSectionLoop(
Section §ion,
int nLoop);
445 void UpdateSection(
Section §ion);
453 std::vector<Section> mSections;
458 std::list<DrawEntry> mDrawOrder;
528extern Arena *(*g_pfnNewArena)(
const HxStr &name);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Animatable()
Construct an animatable with no children, no filters, and a zero frame.
bool operator<(const DrawEntry &other) const
Order entries by descending sort key.
Definition arena.h:135
DrawEntry()
Construct an entry with no view.
Definition arena.h:122
float mSortKey
Definition arena.h:140
View * mView
Definition arena.h:139
Loop of views the renderer walks as one continuous space.
Definition arena.h:59
Vector3 & LoopDist()
Report the loop displacement.
void SetSectionRange(int nIndex, float flStartFrame, float flEndFrame)
Set the frames one section is shown for.
virtual ~Arena()
Release the section views and every referrer.
virtual void Replace(Object *pFrom, Object *pTo)
Replace one object reference with another.
void SetLoopDist(const Vector3 &loopDist)
Set the displacement one trip round the loop applies.
virtual int UpdateWorldXfm(Transformable *pParent, int nForce)
Recompute the world transform, and then that of every showing section view.
void RemoveInstancesFromHitList()
Drop this loop's registration on every section view and empty mDrawOrder.
void SetSectionTeleport(int nIndex, int nTeleport)
Set whether one section moves its view as the loop advances.
static void Init()
Install the creator hook and register the class with Rnd::TheManager under the key "Arena".
virtual void SetFrameSelf(float flFrame)
Place every section and rebuild the draw order.
virtual const HxStr & ClassName() const
Return the registered class name, "Arena".
void SetSectionCount(unsigned int nCount)
Resize the loop to a number of sections.
Arena(const HxStr &name)
Construct an empty loop.
virtual void Load(Stream &stream)
Read the loop from stream.
void SetLoopFrames(float flLoopFrames)
Set the number of frames one trip round the loop takes.
virtual void Copy(const Object *pSource, unsigned nFlags)
Copy another loop over this one.
void AddInstancesToHitList()
Register this loop as a referrer of every section view and resize mDrawOrder.
void SetSectionView(int nIndex, View *pView)
Point one section at a view.
virtual void FindCollisions(const Segment &ray, std::list< Collision > &collisions)
Test a ray against the loop and append what it strikes to sink.
virtual void Save(Stream &stream)
Write revision 4 of the loop to stream.
virtual void DumpText(Dbg &sink)
Write the loop to the engine text sink.
virtual int DrawShowing()
Draw the section views in mDrawOrder.
Collideable()
Construct a collideable with no children.
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Drawable()
Construct a visible drawable with no children.
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
Root of a loadable scene.
Definition view.h:47
The rendering engine.
Definition animhelper.h:3
int g_nRndArenaLoadRevision
Revision word Load() has most recently consumed.
Arena * NewArena(const HxStr &name)
Allocate and construct a loop.
Object * CreateRegisteredArena(const HxStr &name)
Build a loop for the registered "Arena" class.
HxStr g_arenaClassName
Registered class name of Rnd::Arena, the string "Arena".
Arena * NewArenaThroughHook(const HxStr &name)
Build a loop through g_pfnNewArena, without the narrowing CreateRegisteredArena() performs.
One view in the loop.
Definition arena.h:87
int mSortStart
Definition arena.h:101
Section()
Construct a section with no view.
Definition arena.h:93
float mFrame
Definition arena.h:98
int mTeleport
Definition arena.h:100
View * mView
Definition arena.h:97
int mLoop
Definition arena.h:102
float mDelta
Definition arena.h:99
Line segment a collision query is run along.
Definition collideable.h:22
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:12