1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef RY_CONSTANTS_H
20 #define RY_CONSTANTS_H
22 #include "nel/misc/types_nl.h"
23 #include "nel/misc/entity_id.h"
25 // define for xp gains calculation
26 #define MAX_DELTA_LVL 50
27 #define MIN_DELTA_LVL -50
28 #define NB_DELTA_LVL 101
29 #define MIDDLE_DELTA_LVL 50
34 // square of the max talking distance in meters
35 const sint32 MaxTalkingDistSquare
= 64; // 8 m
37 // same, but for "talking" to outpost building
38 const sint32 MaxTalkingOutpostBuildingDistSquare
= 256; // 16 m
40 // square of max distance for commands to animals in meters
41 const sint32 MaxAnimalCommandDistSquare
= 900; // 30 m
43 // raw material source bar speeds
44 const float DeltaMoveBarPerSec
= 60.0f
; // 60 units per second
45 const float DeltaResetBarPerSec
= 130.0f
; // 130 units per second
46 const float DeltaTimeBarPerSec
= 5.0f
; // 5 units per second
48 // ring editor/animator dynamic channel offset (most significant bit of short id set to 1)
49 const uint64 RingDynChanOffset
= UINT64_CONSTANT(0x8000000000);