DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
projectile_data.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_PROJECTILE_DATA_H
4
#define GAME_CLIENT_PROJECTILE_DATA_H
5
6
#include <
base/vmath.h
>
7
8
struct
CNetObj_Projectile;
9
struct
CNetObj_DDRaceProjectile;
10
struct
CNetObj_DDNetProjectile;
11
struct
CNetObj_EntityEx;
12
13
class
CProjectileData
14
{
15
public
:
16
vec2
m_StartPos
;
17
vec2
m_StartVel
;
18
int
m_Type
;
19
int
m_StartTick
;
20
bool
m_ExtraInfo
;
21
// The rest is only set if m_ExtraInfo is true.
22
int
m_Owner
;
23
bool
m_Explosive
=
false
;
24
int
m_Bouncing
= 0;
25
bool
m_Freeze
=
false
;
26
int
m_SwitchNumber
;
27
// TuneZone is introduced locally
28
int
m_TuneZone
;
29
};
30
31
CProjectileData
ExtractProjectileInfo
(
int
NetObjType,
const
void
*pData,
class
CGameWorld
*pGameWorld,
const
CNetObj_EntityEx *pEntEx);
32
CProjectileData
ExtractProjectileInfoDDRace
(
const
CNetObj_DDRaceProjectile *pProj,
class
CGameWorld
*pGameWorld,
const
CNetObj_EntityEx *pEntEx);
33
CProjectileData
ExtractProjectileInfoDDNet
(
const
CNetObj_DDNetProjectile *pProj);
34
35
void
DemoObjectRemoveExtraProjectileInfo
(CNetObj_Projectile *pProj);
36
37
#endif
// GAME_CLIENT_PROJECTILE_DATA_H
CGameWorld
Definition
gameworld.h:18
CProjectileData
Definition
projectile_data.h:14
CProjectileData::m_TuneZone
int m_TuneZone
Definition
projectile_data.h:28
CProjectileData::m_StartPos
vec2 m_StartPos
Definition
projectile_data.h:16
CProjectileData::m_Explosive
bool m_Explosive
Definition
projectile_data.h:23
CProjectileData::m_StartVel
vec2 m_StartVel
Definition
projectile_data.h:17
CProjectileData::m_Freeze
bool m_Freeze
Definition
projectile_data.h:25
CProjectileData::m_Bouncing
int m_Bouncing
Definition
projectile_data.h:24
CProjectileData::m_ExtraInfo
bool m_ExtraInfo
Definition
projectile_data.h:20
CProjectileData::m_SwitchNumber
int m_SwitchNumber
Definition
projectile_data.h:26
CProjectileData::m_StartTick
int m_StartTick
Definition
projectile_data.h:19
CProjectileData::m_Owner
int m_Owner
Definition
projectile_data.h:22
CProjectileData::m_Type
int m_Type
Definition
projectile_data.h:18
ExtractProjectileInfoDDNet
CProjectileData ExtractProjectileInfoDDNet(const CNetObj_DDNetProjectile *pProj)
Definition
projectile_data.cpp:75
ExtractProjectileInfoDDRace
CProjectileData ExtractProjectileInfoDDRace(const CNetObj_DDRaceProjectile *pProj, CGameWorld *pGameWorld, const CNetObj_EntityEx *pEntEx)
Definition
projectile_data.cpp:48
ExtractProjectileInfo
CProjectileData ExtractProjectileInfo(int NetObjType, const void *pData, CGameWorld *pGameWorld, const CNetObj_EntityEx *pEntEx)
Definition
projectile_data.cpp:21
DemoObjectRemoveExtraProjectileInfo
void DemoObjectRemoveExtraProjectileInfo(CNetObj_Projectile *pProj)
Definition
projectile_data.cpp:111
vmath.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
client
projectile_data.h
Generated by
1.18.0