UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
g_camera.cpp File Reference
#include "g_local.h"
#include "g_spawn.h"
#include "g_utils.h"
#include "g_vis.h"

Go to the source code of this file.

Macros

#define CAMERAMODEL(X, IDX)   case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break
 

Functions

static bool G_CameraUse (Edict *self, Edict *activator)
 
static bool Destroy_Camera (Edict *self)
 
void G_InitCamera (Edict *ent, camera_type_t cameraType, float angle, bool rotate)
 

Macro Definition Documentation

#define CAMERAMODEL (   X,
  IDX 
)    case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break

Definition at line 48 of file g_camera.cpp.

Referenced by G_InitCamera().

Function Documentation

static bool Destroy_Camera ( Edict self)
static

Definition at line 41 of file g_camera.cpp.

References G_FreeEdict(), and G_SpawnParticle().

Referenced by G_InitCamera().

static bool G_CameraUse ( Edict self,
Edict activator 
)
static

Definition at line 30 of file g_camera.cpp.

References G_IsActor.

Referenced by G_InitCamera().