DDraceNetwork Documentation
Loading...
Searching...
No Matches
flow.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_COMPONENTS_FLOW_H
4#define GAME_CLIENT_COMPONENTS_FLOW_H
5#include <base/vmath.h>
6
8
9class CFlow : public CComponent
10{
11 struct CCell
12 {
14 };
15
20
21 void DbgRender();
22 void Init();
23
24public:
25 CFlow();
26 int Sizeof() const override { return sizeof(*this); }
27
28 vec2 Get(vec2 Pos);
29 void Add(vec2 Pos, vec2 Vel, float Size);
30 void Update();
31};
32
33#endif
Definition component.h:165
int m_Height
Definition flow.h:17
void Update()
Definition flow.cpp:55
void Init()
Definition flow.cpp:39
int m_Spacing
Definition flow.h:19
CCell * m_pCells
Definition flow.h:16
void DbgRender()
Definition flow.cpp:18
void Add(vec2 Pos, vec2 Vel, float Size)
Definition flow.cpp:78
int Sizeof() const override
Definition flow.h:26
vec2 Get(vec2 Pos)
Definition flow.cpp:65
int m_Width
Definition flow.h:18
CFlow()
Definition flow.cpp:10
Definition flow.h:12
vec2 m_Vel
Definition flow.h:13
vector2_base< float > vec2
Definition vmath.h:161