Pol  Revision:cb584c9
ufuncinl.h
Go to the documentation of this file.
1 
7 #ifndef UFUNCINL_H
8 #define UFUNCINL_H
9 
10 #include <stdlib.h>
11 namespace Pol
12 {
13 namespace Core
14 {
15 inline bool inrangex_inline( const Mobile::Character* c1, const Mobile::Character* c2, int maxdist )
16 {
17  return ( ( abs( c1->x - c2->x ) <= maxdist ) && ( abs( c1->y - c2->y ) <= maxdist ) );
18 }
19 
20 inline bool inrangex_inline( const UObject* c1, unsigned short x, unsigned short y, int maxdist )
21 {
22  return ( ( abs( c1->x - x ) <= maxdist ) && ( abs( c1->y - y ) <= maxdist ) );
23 }
24 }
25 }
26 #endif
bool inrangex_inline(const Mobile::Character *c1, const Mobile::Character *c2, int maxdist)
Definition: ufuncinl.h:15
Definition: berror.cpp:12