wavelength
1.0.0
Loading...
Searching...
No Matches
constructo.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <list>
4
5
#include "
gfx/gfxarena.h
"
6
#include "
rnd/rndparticlesys.h
"
7
#include "
rnd/rndtransformable.h
"
8
15
class
Constructo
:
public
GfxArena
{
16
public
:
18
enum
Level
{
19
kLevelP1
= 1,
20
kLevelP2
= 2,
21
kLevelP3
= 3,
22
kLevelP4
= 4,
23
kLevelBoss
= 5,
24
};
25
31
class
MovingPSPlane
{
32
public
:
40
void
Update
(
float
fFrame);
41
42
RndParticleSys
*
mParticles
;
43
RndTransformable
*
mPlane
;
44
char
mAxis
;
45
};
46
54
explicit
Constructo
(
const
char
*pszName);
55
64
static
GfxArena
*
Create
(
const
char
*pszName);
65
72
~Constructo
()
override
;
73
82
void
SetSongTicks
(
float
fSongTicks)
override
;
83
92
void
Poll
(
float
fTick,
float
fTime)
override
;
93
94
private
:
95
Level
mLevel;
96
std::list<MovingPSPlane> mPlanes;
97
};
Constructo::MovingPSPlane
A particle system that collides with a plane of a moving transformable, 0xc bytes.
Definition
constructo.h:31
Constructo::MovingPSPlane::Update
void Update(float fFrame)
Set the collision plane from the transformable and advance the particles.
Constructo::MovingPSPlane::mPlane
RndTransformable * mPlane
Definition
constructo.h:43
Constructo::MovingPSPlane::mAxis
char mAxis
Definition
constructo.h:44
Constructo::MovingPSPlane::mParticles
RndParticleSys * mParticles
Definition
constructo.h:42
Constructo::SetSongTicks
void SetSongTicks(float fSongTicks) override
Fit the camera path to the song, and take the building parts out of the animation of their view to co...
Constructo::Level
Level
The level of the arena, from its name.
Definition
constructo.h:18
Constructo::kLevelP1
@ kLevelP1
Definition
constructo.h:19
Constructo::kLevelP2
@ kLevelP2
Definition
constructo.h:20
Constructo::kLevelP4
@ kLevelP4
Definition
constructo.h:22
Constructo::kLevelP3
@ kLevelP3
Definition
constructo.h:21
Constructo::kLevelBoss
@ kLevelBoss
Definition
constructo.h:23
Constructo::Constructo
Constructo(const char *pszName)
Construct the arena of a name.
Constructo::~Constructo
~Constructo() override
Destroy the arena.
Constructo::Poll
void Poll(float fTick, float fTime) override
Poll the arena and advance the building parts.
Constructo::Create
static GfxArena * Create(const char *pszName)
Build the arena of a name that starts with Constructo.
GfxArena::GfxArena
GfxArena(const char *pszName)
Construct the arena of a name from the arena_paths entry of the gfx configuration.
RndParticleSys
Emitter that spawns, moves, and fades a population of particles.
Definition
rndparticlesys.h:69
RndTransformable
Mix-in for an object with a local transform and a world transform derived from its parent's.
Definition
rndtransformable.h:17
gfxarena.h
rndparticlesys.h
rndtransformable.h
src
gfx
constructo.h
Generated by
1.15.0