DDraceNetwork Docs
collision.h File Reference
#include <base/vmath.h>
#include <engine/shared/protocol.h>
#include <map>
#include <vector>
Include dependency graph for collision.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CCollision
 

Typedefs

typedef bool(* CALLBACK_SWITCHACTIVE) (int Number, void *pUser)
 

Enumerations

enum  { CANTMOVE_LEFT = 1 << 0 , CANTMOVE_RIGHT = 1 << 1 , CANTMOVE_UP = 1 << 2 , CANTMOVE_DOWN = 1 << 3 }
 

Functions

vec2 ClampVel (int MoveRestriction, vec2 Vel)
 
void ThroughOffset (vec2 Pos0, vec2 Pos1, int *pOffsetX, int *pOffsetY)
 

Typedef Documentation

◆ CALLBACK_SWITCHACTIVE

typedef bool(* CALLBACK_SWITCHACTIVE) (int Number, void *pUser)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CANTMOVE_LEFT 
CANTMOVE_RIGHT 
CANTMOVE_UP 
CANTMOVE_DOWN 

Function Documentation

◆ ClampVel()

vec2 ClampVel ( int  MoveRestriction,
vec2  Vel 
)

◆ ThroughOffset()

void ThroughOffset ( vec2  Pos0,
vec2  Pos1,
int *  pOffsetX,
int *  pOffsetY 
)