DDraceNetwork Docs
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
#include <
game/client/component.h
>
7
8
class
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
23
public
:
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
CComponent
Definition:
component.h:20
CFlow
Definition:
flow.h:9
CFlow::m_Height
int m_Height
Definition:
flow.h:16
CFlow::Update
void Update()
Definition:
flow.cpp:59
CFlow::Init
void Init()
Definition:
flow.cpp:43
CFlow::m_Spacing
int m_Spacing
Definition:
flow.h:18
CFlow::m_pCells
CCell * m_pCells
Definition:
flow.h:15
CFlow::DbgRender
void DbgRender()
Definition:
flow.cpp:16
CFlow::Add
void Add(vec2 Pos, vec2 Vel, float Size)
Definition:
flow.cpp:82
CFlow::Get
vec2 Get(vec2 Pos)
Definition:
flow.cpp:69
CFlow::m_Width
int m_Width
Definition:
flow.h:17
CFlow::CFlow
CFlow()
Definition:
flow.cpp:8
CFlow::Sizeof
virtual int Sizeof() const override
Definition:
flow.h:25
vector2_base< float >
component.h
CFlow::CCell
Definition:
flow.h:11
CFlow::CCell::m_Vel
vec2 m_Vel
Definition:
flow.h:12
vmath.h
src
game
client
components
flow.h
Generated by
1.9.4