resonance 1.0.1
Loading...
Searching...
No Matches
tnlarrow.h
Go to the documentation of this file.
1#pragma once
2
3class TnlPlayer;
4namespace Rnd {
5class Mesh;
6class View;
7} // namespace Rnd
8
20class TnlArrow {
21public:
23 static constexpr int kSlotCount = 4;
24
32 explicit TnlArrow(int nIndex);
33
41
54 void Show(TnlPlayer *pPlayer, float flExpireFrame);
55
65 void Hide(int nSlot);
66
76 void SetFrame(float flFrame);
77
78private:
79 Rnd::Mesh *mMesh;
80 Rnd::View *mViews[kSlotCount]; // View drawing the arrow for each slot, or null.
81 float mExpireFrames[kSlotCount]; // Frame after which each slot hides, 1e9 when hidden.
82};
Indexed triangle mesh with one material.
Definition mesh.h:46
Root of a loadable scene.
Definition view.h:47
void Hide(int nSlot)
Take the arrow out of the view of one slot.
static constexpr int kSlotCount
Number of player slots the arrow can be shown to.
Definition tnlarrow.h:23
void SetFrame(float flFrame)
Hide the arrow from every slot whose expiry frame is before flFrame.
void Show(TnlPlayer *pPlayer, float flExpireFrame)
Show the arrow in the local view of one player until a frame.
TnlArrow(int nIndex)
Resolve "arrow<nIndex>.mesh" with every slot hidden.
~TnlArrow()
Hide the arrow from every slot.
Everything AppTunnel drives in the tunnel for one player.
Definition tnlplayer.h:31
The rendering engine.
Definition animhelper.h:3