Pol  Revision:4b29d2b
ufacing.cpp File Reference
#include "ufacing.h"
#include "../../clib/clib.h"
#include "../../clib/random.h"
#include "../mdelta.h"
#include "../poltype.h"
#include "../uconst.h"
#include "../uobject.h"
#include "charactr.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Core
 
 Pol::Mobile
 

Functions

bool Pol::Mobile::DecodeFacing (const char *dir, Core::UFACING &facing)
 
Core::UFACING Pol::Mobile::direction_away (const Character *src, const Core::UObject *idst)
 
Core::UFACING Pol::Mobile::direction_away (const Character *src, Core::xcoord from_x, Core::ycoord from_y)
 
Core::UFACING Pol::Mobile::direction_toward (const Character *src, const Core::UObject *idst)
 
Core::UFACING Pol::Mobile::direction_toward (const Character *src, Core::xcoord to_x, Core::ycoord to_y)
 
Core::UFACING Pol::Mobile::direction_toward (Core::xcoord from_x, Core::ycoord from_y, Core::xcoord to_x, Core::ycoord to_y)
 
const char * Pol::Mobile::FacingStr (Core::UFACING facing)
 
Core::UFACING Pol::Mobile::GetRandomFacing ()
 

Variables

std::array< int, 7 > Pol::Core::adjustments = {{0, +1, -1, +2, -2, +3, -3}}
 
UFACING Pol::Core::away_cvt [8]