resonance 1.0.1
Loading...
Searching...
No Matches
tnlcatcher.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/hxstr.h"
4
5namespace Rnd {
6class Animatable;
7class Mat;
8class Mesh;
9class Tex;
10class View;
11} // namespace Rnd
12
27public:
29 enum { kTargetCount = 3 };
30
41 explicit TnlCatcher(const HxStr &colorName);
42
50 void SetMultiplied(int nMultiplied);
51
59
69 void Hit(int nTarget);
70
78 void SetAlpha(float flAlpha);
79
89 void AttachTo(Rnd::View *pParent);
90
100 void Update(float flFrame);
101
108
109private:
110 int mTarget;
111 Rnd::Mesh *mTargets[kTargetCount]; // "act_<c>tar<n>.mesh".
112 Rnd::Mat *mUpMat; // "act_<c> tar up.mat".
113 Rnd::Mat *mDownMat; // "act_<c> tar dn.mat".
114 Rnd::Mat *mMat; // "act_<c>.mat".
115 Rnd::Tex *mTex; // "act_<c>.bmp".
116 Rnd::Tex *mMultTex; // "act_mult_<c>.tex".
117 Rnd::Animatable *mMultMovie; // "act_mult_<c>.mov".
118 int mMultiplied;
119 int mUnusedWord; // +0x30, zeroed and never read by the recovered routines.
120 int mUpdateCount;
121 int mHitCount; // Updates since the last hit.
122};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Mix-in for an object driven by a frame number.
Definition animatable.h:43
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Texture, as a bitmap path plus the load state of its mip levels.
Definition tex.h:43
Root of a loadable scene.
Definition view.h:47
void SetAlpha(float flAlpha)
Set the alpha of the "act_<c>.mat" material.
void SetMultiplied(int nMultiplied)
Switch the material between the plain and the multiplier texture.
void Hit(int nTarget)
Put one target on the "tar dn" material and restart the hit count.
void AttachTo(Rnd::View *pParent)
Parent the view to another view for both transform and drawing.
void ResetTargets()
Put every target on the "tar up" material.
void Update(float flFrame)
Advance the multiplier movie, the hit count, and the view.
Rnd::View * mView
Catcher view, "catcher_<c>".
Definition tnlcatcher.h:107
@ kTargetCount
Definition tnlcatcher.h:29
TnlCatcher(const HxStr &colorName)
Resolve the view, the targets, the materials, the textures, and the movie.
The rendering engine.
Definition animhelper.h:3