wavelength 1.0.0
Loading...
Searching...
No Matches
tnlactivator.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/gfxtunnel.h"
4#include "gfx/tnlcatcher.h"
5#include "math/interpolator.h"
6#include "rnd/rndview.h"
7#include "script/dataarray.h"
8
17public:
28 TnlActivator(GfxTunnel *pTunnel, int nPlayer, int nCam, const char *pszColor);
29
37
48 void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption);
49
57 void SetRotShowing(int bShowing);
58
66 void SetSuppressed(int bSuppressed);
67
79 void SetPlace(signed char nPlace, signed char nNumPlaces);
80
89 void Hit(int nTarget, bool bHit);
90
100 void Bump(bool bBumped, int nTrack, const TnlActivator *pAttacker);
101
108 void Reset();
109
117 void Update(float flDelta);
118
121 return mCatcher;
122 }
123
125 const TnlCatcher &GetCatcher() const {
126 return mCatcher;
127 }
128
131 return mPlace;
132 }
133
134private:
135 int mPlayer;
136 RndView *mRot;
137 RndView *mView;
138 int mReserved0c; // +0x0c Not yet read or written.
139 RndView *mFx;
140 unsigned char mReserved14[0xc]; // +0x14 to +0x1f are not yet identified.
141 TnlCatcher mCatcher;
142 unsigned char mReserved88[0x8]; // +0x88 to +0x8f are not yet identified.
143 int mBlinking;
144 int mReserved94; // +0x94 Not yet read or written.
145 int mMoving;
146 LinearInterpolator mPlace;
147 LinearInterpolator mScale;
148 float mPosition;
149 GfxTunnel *mTunnel;
150};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58
Straight-line interpolator.
Definition interpolator.h:99
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
TnlCatcher & GetCatcher()
Definition tnlactivator.h:120
void Update(float flDelta)
Advance the slide, the scale, and the catcher, and pass the place and the scale to the ship.
void Bump(bool bBumped, int nTrack, const TnlActivator *pAttacker)
Show a bump on the catcher of a leading player who is bumped.
void SetRotShowing(int bShowing)
Show or hide the rotating part of the activator.
void Hit(int nTarget, bool bHit)
Start the hit animation of a target of the catcher.
void SetSuppressed(int bSuppressed)
Hide the catcher, or let it show again.
~TnlActivator()
Destroy the activator.
const TnlCatcher & GetCatcher() const
Definition tnlactivator.h:125
TnlActivator(GfxTunnel *pTunnel, int nPlayer, int nCam, const char *pszColor)
Find the views of the activator of a player and attach the catcher to it.
void SetPlace(signed char nPlace, signed char nNumPlaces)
Move the activator to the place of the player in the race.
const LinearInterpolator & GetPlace() const
Definition tnlactivator.h:130
void Reset()
Put the activator back at the first place at its full size and end a bump.
void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
Load the settings of the activator.
The catcher of a player, the three targets at the bottom of the track the gems fly into.
Definition tnlcatcher.h:23