Pol  Revision:cb584c9
lightlvl.h
Go to the documentation of this file.
1 
7 #ifndef LIGHTLVL_H
8 #define LIGHTLVL_H
9 namespace Pol
10 {
11 namespace Core
12 {
13 class LightRegion;
14 int lightlevel( unsigned short x, unsigned short y );
15 void SetRegionLightLevel( LightRegion* lightregion, int lightlevel );
16 
17 const unsigned MIN_LIGHTLEVEL = 0;
18 const unsigned MAX_LIGHTLEVEL = 30;
19 
20 inline bool VALID_LIGHTLEVEL( int lightlevel )
21 {
22  return ( unsigned( lightlevel ) <= MAX_LIGHTLEVEL );
23 }
24 }
25 }
26 #endif
const unsigned MAX_LIGHTLEVEL
Definition: lightlvl.h:18
bool VALID_LIGHTLEVEL(int lightlevel)
Definition: lightlvl.h:20
int lightlevel(unsigned short x, unsigned short y)
const unsigned MIN_LIGHTLEVEL
Definition: lightlvl.h:17
void SetRegionLightLevel(LightRegion *lightregion, int lightlevel)
Definition: ufunc.cpp:1676
Definition: berror.cpp:12