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>
7
8class CFlow : public CComponent
9{
10 struct CCell
11 {
13 };
14
19
20 void DbgRender();
21 void Init();
22
23public:
24 CFlow();
25 int Sizeof() const override { return sizeof(*this); }
26
28 void Add(vec2 Pos, vec2 Vel, float Size);
29 void Update();
30};
31
32#endif
Definition component.h:165
Definition flow.h:9
int m_Height
Definition flow.h:16
void Update()
Definition flow.cpp:53
void Init()
Definition flow.cpp:37
int m_Spacing
Definition flow.h:18
CCell * m_pCells
Definition flow.h:15
void DbgRender()
Definition flow.cpp:16
void Add(vec2 Pos, vec2 Vel, float Size)
Definition flow.cpp:76
int Sizeof() const override
Definition flow.h:25
vec2 Get(vec2 Pos)
Definition flow.cpp:63
int m_Width
Definition flow.h:17
CFlow()
Definition flow.cpp:8
Definition flow.h:11
vec2 m_Vel
Definition flow.h:12