Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
movable.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Moving platforms, obstacles (bomberman mode) and barels
4 
5 #include "inexor/shared/cube_vector.hpp" // for vector
6 
7 struct fpsent;
8 struct physent;
9 struct vec;
10 
11 namespace game {
12 
13 struct movable;
14 
16 
17 extern void clearmovables();
18 extern void stackmovable(movable *d, physent *o);
19 extern void updatemovables(int curtime);
20 extern void rendermovables();
21 extern void suicidemovable(movable *m);
22 extern void hitmovable(int damage, movable *m, fpsent *at, const vec &vel, int gun);
23 extern bool isobstaclealive(movable *m);
24 
25 } // ns game
Vector template.
Definition: cube_vector.hpp:22
void suicidemovable(movable *m)
Definition: movable.cpp:205
void updatemovables(int curtime)
Definition: movable.cpp:158
Definition: ents.hpp:128
void rendermovables()
Definition: movable.cpp:192
bool isobstaclealive(movable *m)
Definition: movable.cpp:216
void stackmovable(movable *d, physent *o)
Definition: movable.cpp:152
void at(tagval *args, int numargs)
Definition: command.cpp:2678
void hitmovable(int damage, movable *m, fpsent *at, const vec &vel, int gun)
Definition: movable.cpp:210
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
void clearmovables()
Definition: movable.cpp:105
int curtime
Definition: legacy_time.cpp:14
int d
Definition: octaedit.cpp:1749
Definition: fpsent.hpp:12
vector< movable * > movables
Definition: movable.cpp:103