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
7#include <game/client/component.h>
8
9class CFlow : public CComponent
10{
11 struct CCell
12 {
13 vec2 m_Vel;
14 };
15
16 CCell *m_pCells;
17 int m_Height;
18 int m_Width;
19 int m_Spacing;
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
34