Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
Pol::Core::ULWObject::y
u16 y
Definition:
baseobject.h:60
Pol::Mobile::Character
Definition:
charactr.h:334
Pol::Core::inrangex_inline
bool inrangex_inline(const Mobile::Character *c1, const Mobile::Character *c2, int maxdist)
Definition:
ufuncinl.h:15
Pol::Core::UObject
Definition:
uobject.h:146
Pol::Core::ULWObject::x
u16 x
Definition:
baseobject.h:59
Pol
Definition:
berror.cpp:12
pol
ufuncinl.h
Generated on Wed Oct 10 2018 02:42:30 for Pol by
1.8.11