00001 /* 00002 SagaEngine library 00003 Copyright (c) 2002-2006 Skalden Studio AS 00004 00005 This software is provided 'as-is', without any express or implied 00006 warranty. In no event will the authors be held liable for any 00007 damages arising from the use of this software. 00008 00009 Permission is granted to distribute the library under the terms of the 00010 Q Public License version 1.0. Be sure to read and understand the license 00011 before using the library. It should be included here, or you may read it 00012 at http://www.trolltech.com/products/qt/licenses/licensing/qpl 00013 00014 The original version of this library can be located at: 00015 http://www.sagaengine.com/ 00016 00017 Rune Myrland 00018 rune@skalden.com 00019 */ 00020 00021 00022 #ifndef engine_config_engine_config_hpp 00023 #define engine_config_engine_config_hpp 00024 00025 #include "util/config/util_config.hpp" 00026 #include "util/type/util_type.hpp" 00027 00028 namespace se_core { 00029 00030 // You may configure this with compiler option 00031 #ifndef SE_MAX_GT 00032 # define SE_MAX_GT 4 * 1024 00033 #endif 00034 00035 // You may configure this with a compiler option 00036 #ifndef SE_MAX_GO 00037 # define SE_MAX_GO (512 * 1024) 00038 #endif 00039 00040 00041 // Or by custom config file (see util/config/util_config.hpp) 00042 // for how it works. 00043 #ifndef SE_CONFIG_CUSTOM_GO_COUNT 00044 const int MAX_GAME_TYPES = SE_MAX_GT; 00045 const int MAX_GAME_OBJECTS = SE_MAX_GO; 00046 #endif 00047 00048 // You may configure this with a compiler option. The interval between 00049 // simulation engine timestep will be 2 ^ SE_TIMESTEP_SHIFT milliseconds. 00050 #ifndef SE_STEP_SHIFT 00051 //# define SE_STEP_SHIFT 6 // 16 steps a second 00052 # define SE_STEP_SHIFT 5 // 32 steps a second 00053 //# define SE_STEP_SHIFT 4 // 64 steps a second 00054 #endif 00055 00056 00057 // Or by custom config file (see util/config/util_config.hpp) 00058 // for how it works. 00059 #ifndef SE_CONFIG_CUSTOM_TIMESTEP_INTERVAL 00060 const short TIMESTEP_INTERVAL_SHIFT = SE_STEP_SHIFT; 00061 #endif 00062 const long TIMESTEP_INTERVAL = 1L << TIMESTEP_INTERVAL_SHIFT; 00063 const long TIMESTEPS_PER_SECOND = 1024L >> TIMESTEP_INTERVAL_SHIFT; 00064 00065 const float COOR_STEP = COOR_RES / TIMESTEPS_PER_SECOND; 00066 const scale_t SCALE_STEP = SCALE_RES / TIMESTEPS_PER_SECOND; 00067 00068 //const scale_t SCALE_WHEN_TO_SECOND = (SCALE_RES / 1024); 00069 } 00070 00071 00072 namespace se_core { 00073 enum DictonaryType { 00074 DE_DICTIONARY_TYPE, 00075 DE_COMPONENT_TYPE, 00076 DE_PROPERTY_TYPE, 00077 DE_ZONE, 00078 DE_THING_TYPE, 00079 DE_TAG, 00080 DE_SUBSTANCE, 00081 DE_MOVEMENT_MODE, 00082 DE_TERRAIN_STYLE, 00083 DE_SOUND_TYPE, 00084 DE_PHRASE_TYPE, 00085 DE_FIRST_USER_TYPE 00086 }; 00087 00088 } 00089 00090 00091 /* Game logic enums doesn't belong in se_core 00092 #ifndef SE_CONFIG_CUSTOM_THING 00093 namespace se_core { 00094 00095 enum Thing_SingleValueType { 00096 SV_UNDEFINED = 0, 00097 SV_ENTRANCE_ID, 00098 SV_TAG, 00099 SV_PUSHER_TYPE, 00100 SV_PUSHED_TYPE, 00101 SV_SPAWN_COUNT, 00102 SV_DIRECTION, 00103 SV_ROTATE, 00104 SV_SOUND_SCHEMA, 00105 SV_MUSIC, // se_gba 00106 SV_DYNAMIC_FLOOR, // se_gba 00107 SV_COUNT 00108 }; 00109 00110 enum Thing_AttributeType { 00111 ATT_UNDEFINED, 00112 ATT_ENTER_TO, 00113 ATT_SCRIPT, 00114 ATT_COUNT 00115 }; 00116 00117 enum Thing_MultiSimObjectTypeOld { 00118 MGO_THINGS_CARRIED = 0, 00119 MGO_THINGS_WORN, 00120 MGO_CUTSCENES, 00121 MGO_CUTSCENE_MEMBERSHIPS, 00122 MGO_QUEST_GOALS, 00123 MGO_COUNT 00124 }; 00125 00126 enum Thing_MultiSimObjectType { 00127 MGOT_THINGS_CARRIED = 0, 00128 MGOT_THINGS_WORN, 00129 MGOT_CUTSCENES, 00130 MGOT_CUTSCENE_MEMBERSHIPS, 00131 MGOT_QUEST_GOALS, 00132 MGOT_COUNT 00133 }; 00134 00135 } 00136 #endif 00137 */ 00138 00139 00140 #endif
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:11 2007 by Doxygen version 1.3.9.1.