Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
projectile.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 #include "inexor/shared/geom.hpp"
6 #include "inexor/shared/ents.hpp"
7 
8 namespace game {
9 
10 // TODO: actually this whole structure is not needed outside
11 struct projectile {
13  float speed;
15  int gun;
16  bool local;
18  int id;
20 };
22 
23 extern void clearprojectiles();
24 
25 extern void renderprojectiles();
26 
27 enum {
34 };
35 
36 struct bouncer : physent {
38  float lastyaw, roll;
39  bool local;
44  int id;
47 
48  bouncer() : bounces(0), roll(0), variant(0) {
49  type = ENT_BOUNCE;
50  }
51 };
52 
54 
55 
56 extern void clearbouncers();
57 
58 extern void renderbouncers();
59 
60 extern void preloadbouncers();
61 } // ns game
Definition: ents.hpp:82
Definition: projectile.hpp:30
Vector template.
Definition: cube_vector.hpp:22
bool local
Definition: projectile.hpp:16
int bounces
Definition: projectile.hpp:37
Definition: projectile.hpp:28
void clearbouncers()
Definition: weapon.cpp:363
int id
Definition: projectile.hpp:44
int offsetmillis
Definition: projectile.hpp:43
vec dir
Definition: projectile.hpp:12
void preloadbouncers()
Definition: weapon.cpp:1026
float speed
Definition: projectile.hpp:13
int id
Definition: projectile.hpp:18
Definition: ents.hpp:128
int variant
Definition: projectile.hpp:41
int offsetmillis
Definition: projectile.hpp:17
Definition: projectile.hpp:11
Definition: projectile.hpp:36
void renderprojectiles()
Definition: weapon.cpp:1109
entitylight light
Definition: projectile.hpp:45
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
fpsent * owner
Definition: projectile.hpp:40
vec to
Definition: projectile.hpp:12
uchar type
Definition: ents.hpp:145
Definition: ents.hpp:124
int lifetime
Definition: projectile.hpp:37
vector< bouncer * > bouncers
Definition: weapon.cpp:51
entitylight light
Definition: projectile.hpp:19
vec offset
Definition: projectile.hpp:12
Definition: projectile.hpp:29
int bouncetype
Definition: projectile.hpp:41
vec o
Definition: projectile.hpp:12
int generation
Definition: projectile.hpp:46
bouncer()
Definition: projectile.hpp:48
vec offset
Definition: projectile.hpp:42
Definition: projectile.hpp:31
float lastyaw
Definition: projectile.hpp:38
Definition: projectile.hpp:32
Definition: fpsent.hpp:12
void clearprojectiles()
Definition: weapon.cpp:367
vector< projectile > projs
Definition: weapon.cpp:365
static map entities ("entity") and dynamic entities (players/monsters, "dynent") the gamecode extends...
mathmatics for vectors, matrices, quaterions and more
void renderbouncers()
Definition: weapon.cpp:1051
bool local
Definition: projectile.hpp:39
float roll
Definition: projectile.hpp:38
Definition: projectile.hpp:33
fpsent * owner
Definition: projectile.hpp:14
int gun
Definition: projectile.hpp:15