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