DDraceNetwork Docs
collision.cpp File Reference
#include <base/math.h>
#include <base/system.h>
#include <base/vmath.h>
#include <antibot/antibot_data.h>
#include <cmath>
#include <engine/map.h>
#include <game/collision.h>
#include <game/layers.h>
#include <game/mapitems.h>
#include <engine/shared/config.h>
Include dependency graph for collision.cpp:

Enumerations

enum  {
  MR_DIR_HERE = 0 , MR_DIR_RIGHT , MR_DIR_DOWN , MR_DIR_LEFT ,
  MR_DIR_UP , NUM_MR_DIRS
}
 

Functions

vec2 ClampVel (int MoveRestriction, vec2 Vel)
 
static int GetMoveRestrictionsRaw (int Direction, int Tile, int Flags)
 
static int GetMoveRestrictionsMask (int Direction)
 
static int GetMoveRestrictions (int Direction, int Tile, int Flags)
 
void ThroughOffset (vec2 Pos0, vec2 Pos1, int *pOffsetX, int *pOffsetY)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_DIR_HERE 
MR_DIR_RIGHT 
MR_DIR_DOWN 
MR_DIR_LEFT 
MR_DIR_UP 
NUM_MR_DIRS 

Function Documentation

◆ ClampVel()

vec2 ClampVel ( int  MoveRestriction,
vec2  Vel 
)

◆ GetMoveRestrictions()

static int GetMoveRestrictions ( int  Direction,
int  Tile,
int  Flags 
)
static

◆ GetMoveRestrictionsMask()

static int GetMoveRestrictionsMask ( int  Direction)
static

◆ GetMoveRestrictionsRaw()

static int GetMoveRestrictionsRaw ( int  Direction,
int  Tile,
int  Flags 
)
static

◆ ThroughOffset()

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