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
7
#include <
game/client/component.h
>
8
9
class
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
24
public
:
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
CComponent
Definition
component.h:165
CFlow::m_Height
int m_Height
Definition
flow.h:17
CFlow::Update
void Update()
Definition
flow.cpp:55
CFlow::Init
void Init()
Definition
flow.cpp:39
CFlow::m_Spacing
int m_Spacing
Definition
flow.h:19
CFlow::m_pCells
CCell * m_pCells
Definition
flow.h:16
CFlow::DbgRender
void DbgRender()
Definition
flow.cpp:18
CFlow::Add
void Add(vec2 Pos, vec2 Vel, float Size)
Definition
flow.cpp:78
CFlow::Sizeof
int Sizeof() const override
Definition
flow.h:26
CFlow::Get
vec2 Get(vec2 Pos)
Definition
flow.cpp:65
CFlow::m_Width
int m_Width
Definition
flow.h:18
CFlow::CFlow
CFlow()
Definition
flow.cpp:10
component.h
CFlow::CCell
Definition
flow.h:12
CFlow::CCell::m_Vel
vec2 m_Vel
Definition
flow.h:13
vmath.h
vec2
vector2_base< float > vec2
Definition
vmath.h:161
src
game
client
components
flow.h
Generated by
1.16.1