Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix whitespace in files.

The problems fixed:
  1) Mixed LF and CR-LF file endings, turned them all to LF:
     $ sed -i -e 's/^M$//g'
  2) Spaces or tabs at end of lines, removed them:
     $ sed -i -e 's/[\t ]\+$//g'
  3) Mixed tabs and spaces indentation, fixed it by forcing 4-space indent:
     $ sed -i -e 's/\t/    /g'
  • Loading branch information...
commit 3e51f1d5bb810a5528a76a80b8ca25c0746bb2d6 1 parent 3d87cf5
@BloodyRabbit BloodyRabbit authored
Showing with 12,867 additions and 12,867 deletions.
  1. +30 −30 CMakeLists.txt
  2. +26 −26 README.md
  3. +1 −1  cmake/FindICONV.cmake
  4. +1 −1  dep/asio/CMakeLists.txt
  5. +33 −33 dep/lua/CMakeLists.txt
  6. +4 −4 doc/ChangeLog
  7. +22 −22 include/common/common.h
  8. +1 −1  include/common/database/dbcore.h
  9. +1 −1  include/common/database/dbtype.h
  10. +4 −4 include/common/log/LogNew.h
  11. +23 −23 include/common/log/logtypes.h
  12. +26 −26 include/common/network/NetUtils.h
  13. +20 −20 include/common/network/Socket.h
  14. +25 −25 include/common/network/StreamPacketizer.h
  15. +20 −20 include/common/utils/Deflate.h
  16. +28 −28 include/common/utils/DirWalker.h
  17. +2 −2 include/common/utils/RefPtr.h
  18. +23 −23 include/common/utils/Seperator.h
  19. +20 −20 include/common/utils/Singleton.h
  20. +20 −20 include/common/utils/XMLParser.h
  21. +20 −20 include/common/utils/crc32.h
  22. +79 −79 include/common/utils/gpoint.h
  23. +49 −49 include/common/utils/timer.h
  24. +33 −33 include/eve-collector/EVECollectDisp.h
  25. +3 −3 include/eve-collector/destiny_types.h
  26. +25 −25 include/eve-collector/method_types.h
  27. +11 −11 include/eve-common/cache/CachedObjectMgr.h
  28. +1 −1  include/eve-common/database/RowsetReader.h
  29. +26 −26 include/eve-common/destiny/DestinyBinDump.h
  30. +74 −74 include/eve-common/destiny/DestinyStructs.h
  31. +74 −74 include/eve-common/marshal/EVEMarshalOpcodes.h
  32. +22 −22 include/eve-common/marshal/EVEUnmarshal.h
  33. +30 −30 include/eve-common/network/EVEPktDispatch.h
  34. +48 −48 include/eve-common/network/EVESession.h
  35. +12 −12 include/eve-common/network/EVETCPConnection.h
  36. +22 −22 include/eve-common/network/EVETCPServer.h
  37. +376 −376 include/eve-common/network/packet_types.h
  38. +32 −32 include/eve-common/python/PyLookupDump.h
  39. +19 −19 include/eve-common/python/PyRep.h
  40. +237 −237 include/eve-common/python/PyTraceLog.h
  41. +50 −50 include/eve-common/python/classes/PyDatabase.h
  42. +43 −43 include/eve-common/python/classes/PyExceptions.h
  43. +7 −7 include/eve-common/python/classes/PyUtils.h
  44. +32 −32 include/eve-common/tables/invCategories.h
  45. +590 −590 include/eve-common/tables/invGroups.h
  46. +444 −444 include/eve-common/utils/EvilNumber.h
  47. +367 −367 include/eve-common/utils/Util.h
  48. +172 −172 include/eve-server/Client.h
  49. +23 −23 include/eve-server/ClientSession.h
  50. +22 −22 include/eve-server/EVEServerConfig.h
  51. +60 −60 include/eve-server/EntityList.h
  52. +6 −6 include/eve-server/LiveUpdateDB.h
  53. +28 −28 include/eve-server/NetService.h
  54. +36 −36 include/eve-server/PyBoundObject.h
  55. +47 −47 include/eve-server/PyCallable.h
  56. +128 −128 include/eve-server/PyService.h
  57. +61 −61 include/eve-server/PyServiceCD.h
  58. +60 −60 include/eve-server/PyServiceMgr.h
  59. +3 −3 include/eve-server/ServiceDB.h
  60. +24 −24 include/eve-server/account/AccountDB.h
  61. +39 −39 include/eve-server/account/AccountService.h
  62. +31 −31 include/eve-server/account/ClientStatMgrService.h
  63. +28 −28 include/eve-server/account/UserService.h
  64. +30 −30 include/eve-server/admin/AlertService.h
  65. +23 −23 include/eve-server/admin/AllCommands.h
  66. +25 −25 include/eve-server/admin/ClientStatLogger.h
  67. +26 −26 include/eve-server/admin/CommandDB.h
  68. +16 −16 include/eve-server/admin/CommandDispatcher.h
  69. +22 −22 include/eve-server/admin/DevToolsProviderService.h
  70. +16 −16 include/eve-server/admin/GMCommands.h
  71. +30 −30 include/eve-server/admin/PetitionerService.h
  72. +30 −30 include/eve-server/admin/SlashService.h
  73. +22 −22 include/eve-server/apiserver/APIAccountDB.h
  74. +26 −26 include/eve-server/apiserver/APIAccountManager.h
  75. +25 −25 include/eve-server/apiserver/APIAdminManager.h
  76. +24 −24 include/eve-server/apiserver/APICacheManager.h
  77. +24 −24 include/eve-server/apiserver/APICharacterDB.h
  78. +25 −25 include/eve-server/apiserver/APICharacterManager.h
  79. +26 −26 include/eve-server/apiserver/APICorporationManager.h
  80. +26 −26 include/eve-server/apiserver/APIEveSystemManager.h
  81. +26 −26 include/eve-server/apiserver/APIMapManager.h
  82. +46 −46 include/eve-server/apiserver/APIServer.h
  83. +42 −42 include/eve-server/apiserver/APIServerConnection.h
  84. +26 −26 include/eve-server/apiserver/APIServerListener.h
  85. +26 −26 include/eve-server/apiserver/APIServerManager.h
  86. +31 −31 include/eve-server/apiserver/APIServiceDB.h
  87. +32 −32 include/eve-server/apiserver/APIServiceManager.h
  88. +99 −99 include/eve-server/authorisation/BinAsciiModule.h
  89. +420 −420 include/eve-server/authorisation/ShaModule.h
  90. +2 −2 include/eve-server/browser/browserLockdownSvc.h
  91. +29 −29 include/eve-server/bulk/BulkMgrService.h
  92. +128 −128 include/eve-server/cache/ObjCacheDB.h
  93. +72 −72 include/eve-server/cache/ObjCacheService.h
  94. +28 −28 include/eve-server/character/AggressionMgrService.h
  95. +26 −26 include/eve-server/character/CertificateMgrDB.h
  96. +40 −40 include/eve-server/character/CertificateMgrService.h
  97. +27 −27 include/eve-server/character/CharFittingMgrService.h
  98. +39 −39 include/eve-server/character/CharMgrService.h
  99. +88 −88 include/eve-server/character/CharUnboundMgrService.h
  100. +570 −570 include/eve-server/character/Character.h
  101. +1 −1  include/eve-server/character/CharacterAppearance_fields.h
  102. +140 −140 include/eve-server/character/CharacterDB.h
  103. +60 −60 include/eve-server/character/CharacterService.h
  104. +22 −22 include/eve-server/character/PaperDollDB.h
  105. +33 −33 include/eve-server/character/PaperDollService.h
  106. +27 −27 include/eve-server/character/PhotoUploadService.h
  107. +104 −104 include/eve-server/character/Skill.h
  108. +83 −83 include/eve-server/character/SkillMgrService.h
  109. +154 −154 include/eve-server/chat/LSCChannel.h
  110. +64 −64 include/eve-server/chat/LSCDB.h
  111. +3 −3 include/eve-server/chat/LSCService.h
  112. +36 −36 include/eve-server/chat/LookupService.h
  113. +27 −27 include/eve-server/chat/OnlineStatusService.h
  114. +27 −27 include/eve-server/chat/VoiceMgrService.h
  115. +38 −38 include/eve-server/chat/kenny.h
  116. +41 −41 include/eve-server/config/ConfigService.h
  117. +31 −31 include/eve-server/config/LanguageService.h
  118. +1 −1  include/eve-server/contractproxy/contractProxy.h
  119. +22 −22 include/eve-server/corporation/CorpBookmarkMgrService.h
  120. +28 −28 include/eve-server/corporation/CorpMgrService.h
  121. +30 −30 include/eve-server/corporation/CorpRegistryService.h
  122. +30 −30 include/eve-server/corporation/CorpStationMgrService.h
  123. +51 −51 include/eve-server/corporation/CorporationCarrier.h
  124. +4 −4 include/eve-server/corporation/CorporationDB.h
  125. +37 −37 include/eve-server/corporation/CorporationService.h
  126. +30 −30 include/eve-server/corporation/LPService.h
  127. +23 −23 include/eve-server/dogmaim/DogmaDB.h
  128. +22 −22 include/eve-server/dogmaim/DogmaIMDB.h
  129. +30 −30 include/eve-server/dogmaim/DogmaIMService.h
  130. +30 −30 include/eve-server/dogmaim/DogmaService.h
  131. +27 −27 include/eve-server/fleet/FleetProxy.h
  132. +33 −33 include/eve-server/imageserver/ImageServer.h
  133. +43 −43 include/eve-server/imageserver/ImageServerConnection.h
  134. +26 −26 include/eve-server/imageserver/ImageServerListener.h
  135. +52 −52 include/eve-server/infogathering/infoGatheringMgr.h
  136. +1,463 −1,463 include/eve-server/inventory/AttributeEnum.h
  137. +342 −342 include/eve-server/inventory/AttributeMgr.h
  138. +10 −10 include/eve-server/inventory/EVEAttributeMgr.h
  139. +5 −5 include/eve-server/inventory/EVEAttributes.h
  140. +20 −20 include/eve-server/inventory/EffectsEnum.h
  141. +30 −30 include/eve-server/inventory/InvBrokerService.h
  142. +62 −62 include/eve-server/inventory/Inventory.h
  143. +2 −2 include/eve-server/inventory/InventoryBound.h
  144. +281 −281 include/eve-server/inventory/InventoryDB.h
  145. +10 −10 include/eve-server/inventory/InventoryItem.h
  146. +22 −22 include/eve-server/inventory/ItemDB.h
  147. +226 −226 include/eve-server/inventory/ItemFactory.h
  148. +21 −21 include/eve-server/inventory/ItemRef.h
  149. +287 −287 include/eve-server/inventory/ItemType.h
  150. +75 −75 include/eve-server/inventory/Owner.h
  151. +29 −29 include/eve-server/localization/localizationServerService.h
  152. +32 −32 include/eve-server/mail/MailDB.h
  153. +53 −53 include/eve-server/mail/MailMgrService.h
  154. +22 −22 include/eve-server/mail/MailingListMgrService.h
  155. +35 −35 include/eve-server/mail/NotificationMgrService.h
  156. +309 −309 include/eve-server/manufacturing/Blueprint.h
  157. +22 −22 include/eve-server/manufacturing/FactoryDB.h
  158. +30 −30 include/eve-server/manufacturing/FactoryService.h
  159. +77 −77 include/eve-server/manufacturing/RamProxyDB.h
  160. +2 −2 include/eve-server/manufacturing/RamProxyService.h
  161. +26 −26 include/eve-server/map/MapDB.h
  162. +33 −33 include/eve-server/map/MapService.h
  163. +30 −30 include/eve-server/market/BillMgrService.h
  164. +27 −27 include/eve-server/market/ContractMgrService.h
  165. +59 −59 include/eve-server/market/MarketDB.h
  166. +48 −48 include/eve-server/market/MarketProxyService.h
  167. +145 −145 include/eve-server/mining/Asteroid.h
  168. +45 −45 include/eve-server/mining/AsteroidBeltManager.h
  169. +1 −1  include/eve-server/mining/MiningCommands.h
  170. +22 −22 include/eve-server/mining/MiningDB.h
  171. +28 −28 include/eve-server/mining/ReprocessingDB.h
  172. +29 −29 include/eve-server/mining/ReprocessingService.h
  173. +92 −92 include/eve-server/missions/Agent.h
  174. +40 −40 include/eve-server/missions/AgentMgrService.h
  175. +27 −27 include/eve-server/missions/DungeonExplorationMgrService.h
  176. +26 −26 include/eve-server/missions/MissionDB.h
  177. +30 −30 include/eve-server/missions/MissionMgrService.h
  178. +90 −90 include/eve-server/npc/NPC.h
  179. +58 −58 include/eve-server/npc/NPCAI.h
  180. +46 −46 include/eve-server/npc/NPCAI_State.h
  181. +29 −29 include/eve-server/planetint/planetMgr.h
  182. +23 −23 include/eve-server/posmgr/PosMgrDB.h
  183. +31 −31 include/eve-server/posmgr/PosMgrService.h
  184. +224 −224 include/eve-server/posmgr/Structure.h
  185. +31 −31 include/eve-server/ship/BeyonceService.h
  186. +129 −129 include/eve-server/ship/DestinyManager.h
  187. +118 −118 include/eve-server/ship/Drone.h
  188. +30 −30 include/eve-server/ship/InsuranceService.h
  189. +188 −188 include/eve-server/ship/ModuleManager.h
  190. +95 −95 include/eve-server/ship/Modules/ActiveModules.h
  191. +85 −85 include/eve-server/ship/Modules/ModuleDB.h
  192. +68 −68 include/eve-server/ship/Modules/ModuleDefs.h
Sorry, we could not display the entire diff because too many files (488) changed.
View
60 CMakeLists.txt
@@ -61,21 +61,21 @@ SET( GNUC ${CMAKE_COMPILER_IS_GNUCXX} )
FIND_PACKAGE( "Threads" REQUIRED )
IF (WIN32)
- FIND_PACKAGE( "MySQL" 5.0 QUIET )
- FIND_PACKAGE( "ZLIB" QUIET )
- FIND_PACKAGE( "Boost" QUIET )
+ FIND_PACKAGE( "MySQL" 5.0 QUIET )
+ FIND_PACKAGE( "ZLIB" QUIET )
+ FIND_PACKAGE( "Boost" QUIET )
ELSE()
- FIND_PACKAGE( "MySQL" 5.0 REQUIRED )
- FIND_PACKAGE( "ZLIB" REQUIRED )
-
- FIND_PACKAGE( "Boost" REQUIRED )
- LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
- INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ FIND_PACKAGE( "MySQL" 5.0 REQUIRED )
+ FIND_PACKAGE( "ZLIB" REQUIRED )
+
+ FIND_PACKAGE( "Boost" REQUIRED )
+ LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ENDIF (WIN32)
IF ( NOT WIN32)
- FIND_PACKAGE( "ICONV" REQUIRED )
+ FIND_PACKAGE( "ICONV" REQUIRED )
ENDIF ( NOT WIN32 )
IF( EVEMU_DOC_ENABLE )
@@ -126,7 +126,7 @@ ENDIF( MSVC )
IF ( NOT MSVC )
# to avoid linking any boost libs
- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -DBOOST_DATE_TIME_NO_LIB -DBOOST_REGEX_NO_LIB" )
+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -DBOOST_DATE_TIME_NO_LIB -DBOOST_REGEX_NO_LIB" )
ENDIF ( NOT MSVC )
IF( NOT EVEMU_SOURCE_REVISION )
@@ -197,31 +197,31 @@ IF( NOT UTF8CPP_FOUND )
ENDIF( NOT UTF8CPP_FOUND )
IF(NOT BOOST_FOUND)
- ADD_SUBDIRECTORY("dep/boost")
-
- SET(BOOST_FOUND TRUE)
- SET(Boost_INCLUDE_DIR "${boost_INCLUDE_DIR}")
- SET(Boost_DIR "${boost_INCLUDE_DIR}")
- SET(BOOST_LIBRARIES "boost")
-
- #LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
- INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
+ ADD_SUBDIRECTORY("dep/boost")
+
+ SET(BOOST_FOUND TRUE)
+ SET(Boost_INCLUDE_DIR "${boost_INCLUDE_DIR}")
+ SET(Boost_DIR "${boost_INCLUDE_DIR}")
+ SET(BOOST_LIBRARIES "boost")
+
+ #LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ENDIF(NOT BOOST_FOUND)
IF(NOT MYSQL_FOUND)
- ADD_SUBDIRECTORY("dep/mysql/include")
-
- SET(MYSQL_FOUND TRUE)
- SET(MYSQL_INCLUDE_DIR "${mysql_INCLUDE_DIR}")
- SET(MYSQL_LIBRARIES "${mysql_INCLUDE_DIR}/../lib/opt/libmysql.lib")
+ ADD_SUBDIRECTORY("dep/mysql/include")
+
+ SET(MYSQL_FOUND TRUE)
+ SET(MYSQL_INCLUDE_DIR "${mysql_INCLUDE_DIR}")
+ SET(MYSQL_LIBRARIES "${mysql_INCLUDE_DIR}/../lib/opt/libmysql.lib")
ENDIF(NOT MYSQL_FOUND)
IF(NOT ZLIB_FOUND)
- ADD_SUBDIRECTORY("dep/zlib")
-
- SET(ZLIB_FOUND TRUE)
- SET(ZLIB_INCLUDE_DIR "${zlib_INCLUDE_DIR}")
- SET(ZLIB_LIBRARIES "zlib")
+ ADD_SUBDIRECTORY("dep/zlib")
+
+ SET(ZLIB_FOUND TRUE)
+ SET(ZLIB_INCLUDE_DIR "${zlib_INCLUDE_DIR}")
+ SET(ZLIB_LIBRARIES "zlib")
ENDIF(NOT ZLIB_FOUND)
ADD_SUBDIRECTORY( "dep/asio" )
View
52 README.md
@@ -3,12 +3,12 @@ EVEmu modified to support the latest Crucible client v353549
# Disclaimer
-***EVEmu is an educational project.***
- This means, our primary interest is to learn and teach us
-and our users more about C++ project development in a large
-scale. Our software is not intended for running public servers,
-and we do not support that. We are not responsible for what others
-do with the source code downloaded from this project.
+***EVEmu is an educational project.***
+ This means, our primary interest is to learn and teach us
+and our users more about C++ project development in a large
+scale. Our software is not intended for running public servers,
+and we do not support that. We are not responsible for what others
+do with the source code downloaded from this project.
# Status
- Login works again
@@ -19,25 +19,25 @@ do with the source code downloaded from this project.
- Destiny are not sure
# Legal
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
-
View
2  cmake/FindICONV.cmake
@@ -63,7 +63,7 @@ else(ICONV_FOUND)
set(ICONV_LIBRARIES)
endif(ICONV_FOUND)
-if(ICONV_FOUND)
+if(ICONV_FOUND)
set(CMAKE_REQUIRED_INCLUDES ${ICONV_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
View
2  dep/asio/CMakeLists.txt
@@ -17,7 +17,7 @@ SET( TARGET_SOURCE_DIR "${PROJECT_SOURCE_DIR}/dep/${TARGET_NAME}" )
SET( INCLUDE
"${TARGET_INCLUDE_DIR}/asio.hpp" )
SET( SOURCE
- "${TARGET_SOURCE_DIR}/dummy.cpp" )
+ "${TARGET_SOURCE_DIR}/dummy.cpp" )
#####################
# Setup the library #
View
66 dep/lua/CMakeLists.txt
@@ -39,38 +39,38 @@ SET( INCLUDE
"${TARGET_INCLUDE_DIR}/lvm.h"
"${TARGET_INCLUDE_DIR}/lzio.h" )
SET( SOURCE
- "${TARGET_SOURCE_DIR}/lapi.c"
- "${TARGET_SOURCE_DIR}/lauxlib.c"
- "${TARGET_SOURCE_DIR}/lbaselib.c"
- "${TARGET_SOURCE_DIR}/lcode.c"
- "${TARGET_SOURCE_DIR}/ldblib.c"
- "${TARGET_SOURCE_DIR}/ldebug.c"
- "${TARGET_SOURCE_DIR}/ldo.c"
- "${TARGET_SOURCE_DIR}/ldump.c"
- "${TARGET_SOURCE_DIR}/lfunc.c"
- "${TARGET_SOURCE_DIR}/lgc.c"
- "${TARGET_SOURCE_DIR}/linit.c"
- "${TARGET_SOURCE_DIR}/liolib.c"
- "${TARGET_SOURCE_DIR}/llex.c"
- "${TARGET_SOURCE_DIR}/lmathlib.c"
- "${TARGET_SOURCE_DIR}/lmem.c"
- "${TARGET_SOURCE_DIR}/loadlib.c"
- "${TARGET_SOURCE_DIR}/lobject.c"
- "${TARGET_SOURCE_DIR}/lopcodes.c"
- "${TARGET_SOURCE_DIR}/loslib.c"
- "${TARGET_SOURCE_DIR}/lparser.c"
- "${TARGET_SOURCE_DIR}/lstate.c"
- "${TARGET_SOURCE_DIR}/lstring.c"
- "${TARGET_SOURCE_DIR}/lstrlib.c"
- "${TARGET_SOURCE_DIR}/ltable.c"
- "${TARGET_SOURCE_DIR}/ltablib.c"
- "${TARGET_SOURCE_DIR}/ltm.c"
- "${TARGET_SOURCE_DIR}/lua.c"
- "${TARGET_SOURCE_DIR}/luac.c"
- "${TARGET_SOURCE_DIR}/lundump.c"
- "${TARGET_SOURCE_DIR}/lvm.c"
- "${TARGET_SOURCE_DIR}/lzio.c"
- "${TARGET_SOURCE_DIR}/print.c" )
+ "${TARGET_SOURCE_DIR}/lapi.c"
+ "${TARGET_SOURCE_DIR}/lauxlib.c"
+ "${TARGET_SOURCE_DIR}/lbaselib.c"
+ "${TARGET_SOURCE_DIR}/lcode.c"
+ "${TARGET_SOURCE_DIR}/ldblib.c"
+ "${TARGET_SOURCE_DIR}/ldebug.c"
+ "${TARGET_SOURCE_DIR}/ldo.c"
+ "${TARGET_SOURCE_DIR}/ldump.c"
+ "${TARGET_SOURCE_DIR}/lfunc.c"
+ "${TARGET_SOURCE_DIR}/lgc.c"
+ "${TARGET_SOURCE_DIR}/linit.c"
+ "${TARGET_SOURCE_DIR}/liolib.c"
+ "${TARGET_SOURCE_DIR}/llex.c"
+ "${TARGET_SOURCE_DIR}/lmathlib.c"
+ "${TARGET_SOURCE_DIR}/lmem.c"
+ "${TARGET_SOURCE_DIR}/loadlib.c"
+ "${TARGET_SOURCE_DIR}/lobject.c"
+ "${TARGET_SOURCE_DIR}/lopcodes.c"
+ "${TARGET_SOURCE_DIR}/loslib.c"
+ "${TARGET_SOURCE_DIR}/lparser.c"
+ "${TARGET_SOURCE_DIR}/lstate.c"
+ "${TARGET_SOURCE_DIR}/lstring.c"
+ "${TARGET_SOURCE_DIR}/lstrlib.c"
+ "${TARGET_SOURCE_DIR}/ltable.c"
+ "${TARGET_SOURCE_DIR}/ltablib.c"
+ "${TARGET_SOURCE_DIR}/ltm.c"
+ "${TARGET_SOURCE_DIR}/lua.c"
+ "${TARGET_SOURCE_DIR}/luac.c"
+ "${TARGET_SOURCE_DIR}/lundump.c"
+ "${TARGET_SOURCE_DIR}/lvm.c"
+ "${TARGET_SOURCE_DIR}/lzio.c"
+ "${TARGET_SOURCE_DIR}/print.c" )
#####################
# Setup the library #
@@ -87,5 +87,5 @@ SET( ${TARGET_NAME}_INCLUDE_DIR "${TARGET_INCLUDE_DIR}" PARENT_SCOPE )
# Disable safety warnings because this is a C library
IF (WIN32)
- ADD_DEFINITIONS(/D _CRT_SECURE_NO_WARNINGS)
+ ADD_DEFINITIONS(/D _CRT_SECURE_NO_WARNINGS)
ENDIF (WIN32)
View
8 doc/ChangeLog
@@ -1,4 +1,4 @@
-
+
*** 22/07/2008 ***
- Added autotools
@@ -13,7 +13,7 @@
- Improved NPC AI to make them consistently follow, orbit and attack.
- Hybrid and Laser modules consistently fire on NPCs now.
- Implemented damage code including basic messages.
-- Implemented NPC death logic.
+- Implemented NPC death logic.
- Implement code to support asteroids in space.
- Add new command to spawn an asteroid: /roid (typeID) (radius)
- Implemented graphics for mining lasers (they do not yet actually mine though)
@@ -49,7 +49,7 @@ alter table chrOwnerNote CHANGE content note TEXT NOT NULL;
- Place immediate buy orders
- you prolly need to log out&in before seeing new orders right now.
- Major destiny (space) work:
- - Much improved event broadcasting to allow players to
+ - Much improved event broadcasting to allow players to
observe the actions of another player.
- New module manager to handle different weapon types
- Improved timer support for module activation/deactivation.
@@ -76,7 +76,7 @@ New Table: market_history_old
*** 07/25/2007 ***
- Major revelation with destiny updates, fixes 'jumpy' movement in space.
- Much better understanding of the binary destiny update structure.
-- Significant work on the destiny manager. Server now tracks client movement for
+- Significant work on the destiny manager. Server now tracks client movement for
warp, goto direction, and follow movement modes (orbit is the only major mode pending).
- Some initial drone launching code (not working yet)
- A bunch of makefile cleanup.
View
44 include/common/common.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Aim, Captnoord, Zhur, Bloody.Rabbit
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Aim, Captnoord, Zhur, Bloody.Rabbit
*/
#ifndef __COMMON_H__INCL__
View
2  include/common/database/dbcore.h
@@ -99,7 +99,7 @@ class DBResultRow
const char* GetText( uint32 index ) const { return mRow[ index ]; }
int32 GetInt( uint32 index ) const;
- bool GetBool( uint32 index ) const;
+ bool GetBool( uint32 index ) const;
uint32 GetUInt( uint32 index ) const;
int64 GetInt64( uint32 index ) const;
uint64 GetUInt64( uint32 index ) const;
View
2  include/common/database/dbtype.h
@@ -68,7 +68,7 @@ enum DBTYPE
DBTYPE_UI2 = 0x12,
DBTYPE_UI4 = 0x13,
DBTYPE_I8 = 0x14,
- DBTYPE_UI8 = 0x15,
+ DBTYPE_UI8 = 0x15,
DBTYPE_FILETIME = 0x40, // 64-bit timestamp
//DBTYPE_GUID = 0x48, // not supported
DBTYPE_BYTES = 0x80,
View
8 include/common/log/LogNew.h
@@ -44,7 +44,7 @@ class NewLog
public:
/// Primary constructor, initializes logging.
NewLog();
- NewLog(std::string logPath);
+ NewLog(std::string logPath);
/// Destructor, closes the logfile.
~NewLog();
@@ -53,7 +53,7 @@ class NewLog
*
* @param[in] logPath is the absolute or relative path where log files are to be stored
*/
- void InitializeLogging( std::string logPath );
+ void InitializeLogging( std::string logPath );
/**
* @brief Logs a message to file.
*
@@ -184,7 +184,7 @@ class NewLog
/**
* @brief Sets the default logfile.
*/
- void SetLogfileDefault(std::string logPath);
+ void SetLogfileDefault(std::string logPath);
/// The active logfile.
FILE* mLogfile;
@@ -193,7 +193,7 @@ class NewLog
/// Protection against concurrent log messages
Mutex mMutex;
- bool m_initialized;
+ bool m_initialized;
#ifdef WIN32
/// Handle to standard output stream.
View
46 include/common/log/logtypes.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef LOG_CATEGORY
@@ -36,7 +36,7 @@
#define DISABLED false
#endif
-/*
+/*
* Recommended log level names/ordering:
* fatal error
* error
View
52 include/common/network/NetUtils.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __NET_UTILS_H__INCL__
@@ -31,20 +31,20 @@
#endif
uint32 ResolveIP(const char* hostname, char* errbuf = 0);
-//bool ParseAddress(const char* iAddress, int32* oIP, int16* oPort, char* errbuf = 0);
+//bool ParseAddress(const char* iAddress, int32* oIP, int16* oPort, char* errbuf = 0);
#ifdef WIN32
class InitWinsock
{
public:
- InitWinsock()
+ InitWinsock()
{
- WSADATA wsadata;
- WSAStartup( MAKEWORD( 1, 1 ), &wsadata );
+ WSADATA wsadata;
+ WSAStartup( MAKEWORD( 1, 1 ), &wsadata );
}
- ~InitWinsock()
+ ~InitWinsock()
{
- WSACleanup();
+ WSACleanup();
}
};
#endif
View
40 include/common/network/Socket.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Bloody.Rabbit
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Bloody.Rabbit
*/
#ifndef __SOCKET_H__INCL__
View
50 include/common/network/StreamPacketizer.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __STREAM_PACKETIZER_H__INCL__
@@ -31,12 +31,12 @@
class StreamPacketizer
{
public:
- ~StreamPacketizer();
+ ~StreamPacketizer();
- void InputData( const Buffer& data );
+ void InputData( const Buffer& data );
void Process();
- Buffer* PopPacket();
+ Buffer* PopPacket();
void ClearBuffers();
View
40 include/common/utils/Deflate.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef PACKET_FUNCTIONS_H
View
56 include/common/utils/DirWalker.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __DIRWALKER_H_INCL__
@@ -38,11 +38,11 @@
class DirWalker
{
public:
- DirWalker();
- ~DirWalker();
+ DirWalker();
+ ~DirWalker();
/** @return Current file name. */
- const char* currentFileName();
+ const char* currentFileName();
/**
* @brief Opens directory for listing.
@@ -72,13 +72,13 @@ class DirWalker
protected:
#ifdef WIN32
- HANDLE mFind;
- WIN32_FIND_DATA mFindData;
+ HANDLE mFind;
+ WIN32_FIND_DATA mFindData;
bool mValid;
- bool mFirst;
+ bool mFirst;
#else
- DIR* mDir;
- struct dirent* mFile;
+ DIR* mDir;
+ struct dirent* mFile;
std::string mSuffix;
#endif
};
View
4 include/common/utils/RefPtr.h
@@ -106,8 +106,8 @@ class RefObject
assert( mRefCount > 0 );
--mRefCount;
- if( mRefCount <= 0 )
- delete this;
+ if( mRefCount <= 0 )
+ delete this;
}
/// Reference count of instance.
View
46 include/common/utils/Seperator.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur, Bloody.Rabbit
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur, Bloody.Rabbit
*/
#ifndef __SEPERATOR_H__INCL__
@@ -36,7 +36,7 @@
class Seperator
{
public:
- Seperator( const char* str,
+ Seperator( const char* str,
const char* divs = " \t",
const char* quotes = "\"\'" );
View
40 include/common/utils/Singleton.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Bloody.Rabbit
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Bloody.Rabbit
*/
#ifndef __UTILS__SINGLETON_H__INCL__
View
40 include/common/utils/XMLParser.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __XML_PARSER_H__INCL__
View
40 include/common/utils/crc32.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __UTILS__CRC32_H__INCL__
View
158 include/common/utils/gpoint.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef G_POINT_H
@@ -29,12 +29,12 @@
//typedef Ga::GaVec3 GPoint;
class GPoint : public Ga::GaVec3 {
public:
- GPoint():Ga::GaVec3(){}
- GPoint(Ga::GaFloat v):Ga::GaVec3(v){}
- GPoint(const Ga::GaFloat *v):Ga::GaVec3(v){}
- GPoint(Ga::GaFloat X,Ga::GaFloat Y,Ga::GaFloat Z):Ga::GaVec3(X, Y, Z){}
- GPoint(const GPoint& oth):Ga::GaVec3(oth){}
- GPoint(const Ga::GaVec3& oth):Ga::GaVec3(oth){}
+ GPoint():Ga::GaVec3(){}
+ GPoint(Ga::GaFloat v):Ga::GaVec3(v){}
+ GPoint(const Ga::GaFloat *v):Ga::GaVec3(v){}
+ GPoint(Ga::GaFloat X,Ga::GaFloat Y,Ga::GaFloat Z):Ga::GaVec3(X, Y, Z){}
+ GPoint(const GPoint& oth):Ga::GaVec3(oth){}
+ GPoint(const Ga::GaVec3& oth):Ga::GaVec3(oth){}
// Public functions for manipulating 3D coordinates in space:
// Take existing (x,y,z) point and use that as the center of a sphere of 'radius' and
@@ -66,14 +66,14 @@ class GPoint : public Ga::GaVec3 {
class GVector : public Ga::GaVec3 {
public:
- GVector():Ga::GaVec3(){}
- GVector(Ga::GaFloat v):Ga::GaVec3(v){}
- GVector(const Ga::GaFloat *v):Ga::GaVec3(v){}
- GVector(Ga::GaFloat X,Ga::GaFloat Y,Ga::GaFloat Z):Ga::GaVec3(X, Y, Z){}
- GVector(const GPoint& oth):Ga::GaVec3(oth){}
- GVector(const Ga::GaVec3& oth):Ga::GaVec3(oth){}
- GVector(const GPoint& from, const GPoint& to)
- : Ga::GaVec3( (to.x-from.x), (to.y-from.y), (to.z-from.z) ) {}
+ GVector():Ga::GaVec3(){}
+ GVector(Ga::GaFloat v):Ga::GaVec3(v){}
+ GVector(const Ga::GaFloat *v):Ga::GaVec3(v){}
+ GVector(Ga::GaFloat X,Ga::GaFloat Y,Ga::GaFloat Z):Ga::GaVec3(X, Y, Z){}
+ GVector(const GPoint& oth):Ga::GaVec3(oth){}
+ GVector(const Ga::GaVec3& oth):Ga::GaVec3(oth){}
+ GVector(const GPoint& from, const GPoint& to)
+ : Ga::GaVec3( (to.x-from.x), (to.y-from.y), (to.z-from.z) ) {}
};
#if 0
@@ -81,24 +81,24 @@ class GVector : public Ga::GaVec3 {
class GPoint {
public:
- GPoint();
- GPoint(double x, double y, double z);
+ GPoint();
+ GPoint(double x, double y, double z);
- inline void operator()(double nx, double ny, double nz) { pt[0] = nx; pt[1] = ny; pt[2] = nz; }
+ inline void operator()(double nx, double ny, double nz) { pt[0] = nx; pt[1] = ny; pt[2] = nz; }
- inline const double x() const { return(pt[0]); }
- inline const double y() const { return(pt[1]); }
- inline const double z() const { return(pt[2]); }
+ inline const double x() const { return(pt[0]); }
+ inline const double y() const { return(pt[1]); }
+ inline const double z() const { return(pt[2]); }
- GPoint cross(const GPoint &them) const;
- double dot3(const GPoint &them) const;
+ GPoint cross(const GPoint &them) const;
+ double dot3(const GPoint &them) const;
- const GPoint &operator+=(const GPoint &v2);
- const GPoint &operator-=(const GPoint &v2);
- const GPoint &operator*=(const double c);
- const GPoint &operator/=(const double c);
+ const GPoint &operator+=(const GPoint &v2);
+ const GPoint &operator-=(const GPoint &v2);
+ const GPoint &operator*=(const double c);
+ const GPoint &operator/=(const double c);
- double pt[3];
+ double pt[3];
};
@@ -111,62 +111,62 @@ GPoint operator/(const double c, const GPoint &v1);
class GVector : public GPoint {
public:
- GVector();
- GVector(const GPoint &them);
- GVector(const GPoint &from, const GPoint &to);
- GVector(double x, double y, double z);
-
- void normalize();
- double normalize_getlen(); //normalize and return the calculated length while your at it
- double length() const;
- double length2() const; //length squared
+ GVector();
+ GVector(const GPoint &them);
+ GVector(const GPoint &from, const GPoint &to);
+ GVector(double x, double y, double z);
+
+ void normalize();
+ double normalize_getlen(); //normalize and return the calculated length while your at it
+ double length() const;
+ double length2() const; //length squared
};
class GVector4 : public GVector {
public:
- GVector4();
- GVector4(const GPoint &them);
- GVector4(double x, double y, double z, double w = 1.0f);
+ GVector4();
+ GVector4(const GPoint &them);
+ GVector4(double x, double y, double z, double w = 1.0f);
- inline void operator()(double nx, double ny, double nz, double nw) { pt[0] = nx; pt[1] = ny; pt[2] = nz; W = nw; }
- double dot4(const GVector4 &them) const;
- double dot4(const GPoint &them) const;
+ inline void operator()(double nx, double ny, double nz, double nw) { pt[0] = nx; pt[1] = ny; pt[2] = nz; W = nw; }
+ double dot4(const GVector4 &them) const;
+ double dot4(const GPoint &them) const;
- inline const double w() const { return(W); }
+ inline const double w() const { return(W); }
- double W;
+ double W;
};
class G2Point {
public:
- G2Point();
- G2Point(double x, double y);
+ G2Point();
+ G2Point(double x, double y);
- inline void operator()(double nx, double ny) { pt[0] = nx; pt[1] = ny; }
+ inline void operator()(double nx, double ny) { pt[0] = nx; pt[1] = ny; }
- inline const double x() const { return(pt[0]); }
- inline const double y() const { return(pt[1]); }
+ inline const double x() const { return(pt[0]); }
+ inline const double y() const { return(pt[1]); }
- double pt[2];
+ double pt[2];
};
class G2iPoint {
public:
- G2iPoint();
- G2iPoint(int nx, int ny);
+ G2iPoint();
+ G2iPoint(int nx, int ny);
- inline void operator()(int nx, int ny) { x = nx; y = ny; }
+ inline void operator()(int nx, int ny) { x = nx; y = ny; }
- int x;
- int y;
+ int x;
+ int y;
};
inline bool operator==(const G2iPoint &pt1, const G2iPoint &pt2) {
- return(pt1.x == pt2.x && pt1.y == pt2.y);
+ return(pt1.x == pt2.x && pt1.y == pt2.y);
}
inline bool operator!=(const G2iPoint &pt1, const G2iPoint &pt2) {
- return(pt1.x != pt2.x || pt1.y != pt2.y);
+ return(pt1.x != pt2.x || pt1.y != pt2.y);
}
#endif
View
98 include/common/utils/timer.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef TIMER_H
@@ -29,42 +29,42 @@
class Timer
{
public:
- Timer(int32 timer_time, bool iUseAcurateTiming = false);
- Timer(int32 start, int32 timer, bool iUseAcurateTiming);
- ~Timer() { }
+ Timer(int32 timer_time, bool iUseAcurateTiming = false);
+ Timer(int32 start, int32 timer, bool iUseAcurateTiming);
+ ~Timer() { }
- bool Check(bool iReset = true);
- void Enable();
- void Disable();
- void Start(int32 set_timer_time=0, bool ChangeResetTimer = true);
- void SetTimer(int32 set_timer_time=0);
- int32 GetRemainingTime() const;
- inline const int32& GetTimerTime() { return timer_time; }
- inline const int32& GetSetAtTrigger() { return set_at_trigger; }
- void Trigger();
- void SetAtTrigger(int32 set_at_trigger, bool iEnableIfDisabled = false);
+ bool Check(bool iReset = true);
+ void Enable();
+ void Disable();
+ void Start(int32 set_timer_time=0, bool ChangeResetTimer = true);
+ void SetTimer(int32 set_timer_time=0);
+ int32 GetRemainingTime() const;
+ inline const int32& GetTimerTime() { return timer_time; }
+ inline const int32& GetSetAtTrigger() { return set_at_trigger; }
+ void Trigger();
+ void SetAtTrigger(int32 set_at_trigger, bool iEnableIfDisabled = false);
- inline bool Enabled() const { return enabled; }
- inline int32 GetStartTime() const { return(start_time); }
- inline int32 GetDuration() const { return(timer_time); }
+ inline bool Enabled() const { return enabled; }
+ inline int32 GetStartTime() const { return(start_time); }
+ inline int32 GetDuration() const { return(timer_time); }
- static const int32 SetCurrentTime();
- static const int32 GetCurrentTime();
- static const int32 GetTimeSeconds();
+ static const int32 SetCurrentTime();
+ static const int32 GetCurrentTime();
+ static const int32 GetTimeSeconds();
private:
- int32 start_time;
- int32 timer_time;
- bool enabled;
- int32 set_at_trigger;
+ int32 start_time;
+ int32 timer_time;
+ bool enabled;
+ int32 set_at_trigger;
- // Tells the timer to be more accurate about happening every X ms.
- // Instead of Check() setting the start_time = now,
- // it it sets it to start_time += timer_time
- bool pUseAcurateTiming;
+ // Tells the timer to be more accurate about happening every X ms.
+ // Instead of Check() setting the start_time = now,
+ // it it sets it to start_time += timer_time
+ bool pUseAcurateTiming;
-// static int32 current_time;
-// static int32 last_time;
+// static int32 current_time;
+// static int32 last_time;
};
#endif
View
66 include/eve-collector/EVECollectDisp.h
@@ -9,50 +9,50 @@ class DoDestinyAction;
class EVECollectDispatcher
: public EVEPacketDispatcher {
public:
- EVECollectDispatcher();
- virtual ~EVECollectDispatcher();
+ EVECollectDispatcher();
+ virtual ~EVECollectDispatcher();
+
+ PyLookupResolver lookResolver;
- PyLookupResolver lookResolver;
-
protected:
- virtual void Handle_AuthenticationReq(const PyPacket *packet, AuthenticationReq **call);
- virtual void Handle_AuthenticationRsp(const PyPacket *packet, AuthenticationRsp **call);
- virtual void Handle_CallReq(const PyPacket *packet, PyCallStream **call);
- virtual void Handle_CallRsp(const PyPacket *packet, PyRepTuple **res);
- virtual void Handle_Notify(const PyPacket *packet, EVENotificationStream **notify);
- virtual void Handle_SessionChange(const PyPacket *packet, SessionChangeNotification **notify);
- virtual void Handle_ErrorResponse(const PyPacket *packet, ErrorResponseBody **body);
- virtual void Handle_Other(PyPacket **packet);
-
+ virtual void Handle_AuthenticationReq(const PyPacket *packet, AuthenticationReq **call);
+ virtual void Handle_AuthenticationRsp(const PyPacket *packet, AuthenticationRsp **call);
+ virtual void Handle_CallReq(const PyPacket *packet, PyCallStream **call);
+ virtual void Handle_CallRsp(const PyPacket *packet, PyRepTuple **res);
+ virtual void Handle_Notify(const PyPacket *packet, EVENotificationStream **notify);
+ virtual void Handle_SessionChange(const PyPacket *packet, SessionChangeNotification **notify);
+ virtual void Handle_ErrorResponse(const PyPacket *packet, ErrorResponseBody **body);
+ virtual void Handle_Other(PyPacket **packet);
+
std::map<uint32, std::string> pendingCalls;
std::map<uint32, std::string> pendingBinds;
- //
- // call/notify dispatcher
- //
- typedef void (EVECollectDispatcher::* _CallReqDispatch)(const PyPacket *packet, PyCallStream **call);
- typedef void (EVECollectDispatcher::* _CallRspDispatch)(const PyPacket *packet, PyRepTuple **res);
- typedef void (EVECollectDispatcher::* _NotifyDispatch)(const PyPacket *packet, EVENotificationStream **notify);
- std::map<std::string, _CallReqDispatch> m_callReqDisp;
- std::map<std::string, _CallRspDispatch> m_callRspDisp;
- std::map<std::string, _NotifyDispatch> m_notifyDisp;
+ //
+ // call/notify dispatcher
+ //
+ typedef void (EVECollectDispatcher::* _CallReqDispatch)(const PyPacket *packet, PyCallStream **call);
+ typedef void (EVECollectDispatcher::* _CallRspDispatch)(const PyPacket *packet, PyRepTuple **res);
+ typedef void (EVECollectDispatcher::* _NotifyDispatch)(const PyPacket *packet, EVENotificationStream **notify);
+ std::map<std::string, _CallReqDispatch> m_callReqDisp;
+ std::map<std::string, _CallRspDispatch> m_callRspDisp;
+ std::map<std::string, _NotifyDispatch> m_notifyDisp;
#define CALL_REQ_HANDLER(c) virtual void Req_##c(const PyPacket *packet, PyCallStream **res);
#define CALL_RSP_HANDLER(c) virtual void Rsp_##c(const PyPacket *packet, PyRepTuple **res);
#define BOUND_CALL_RSP_HANDLER(c) virtual void Bound_Rsp_##c(const PyPacket *packet, PyRepTuple **res);
#define NOTIFY_HANDLER(n) virtual void Notify_##n(const PyPacket *packet, EVENotificationStream **notify);
- #include "method_types.h"
-
- //
- // Destiny update dispatcher
- //
- typedef void (EVECollectDispatcher::* _DestinyDispatch)(const PyPacket *packet, DoDestinyAction *action);
- std::map<std::string, _DestinyDispatch> m_destinyDisp;
-
+ #include "method_types.h"
+
+ //
+ // Destiny update dispatcher
+ //
+ typedef void (EVECollectDispatcher::* _DestinyDispatch)(const PyPacket *packet, DoDestinyAction *action);
+ std::map<std::string, _DestinyDispatch> m_destinyDisp;
+
#define DESTINY_HANDLER(n) virtual void Destiny_##n(const PyPacket *packet, DoDestinyAction *action);
- #include "destiny_types.h"
-
- void _DumpBalls(const byte *data, uint32 len);
+ #include "destiny_types.h"
+
+ void _DumpBalls(const byte *data, uint32 len);
};
#endif
View
6 include/eve-collector/destiny_types.h
@@ -4,8 +4,8 @@
#define DESTINY_HANDLER(c)
#endif
- DESTINY_HANDLER(AddBalls)
- DESTINY_HANDLER(SetState)
-
+ DESTINY_HANDLER(AddBalls)
+ DESTINY_HANDLER(SetState)
+
#undef DESTINY_HANDLER
View
50 include/eve-collector/method_types.h
@@ -12,35 +12,35 @@
#define NOTIFY_HANDLER(c)
#endif
- CALL_REQ_HANDLER(MachoBindObject)
-
-// CALL_RSP_HANDLER(GetPostAuthenticationMessage)
- CALL_RSP_HANDLER(GetCharactersToSelect)
- CALL_RSP_HANDLER(MachoBindObject)
- CALL_RSP_HANDLER(GetCachableObject)
+ CALL_REQ_HANDLER(MachoBindObject)
+
+// CALL_RSP_HANDLER(GetPostAuthenticationMessage)
+ CALL_RSP_HANDLER(GetCharactersToSelect)
+ CALL_RSP_HANDLER(MachoBindObject)
+ CALL_RSP_HANDLER(GetCachableObject)
// CALL_RSP_HANDLER(GetChannels)
-/* CALL_RSP_HANDLER(Ping)
- CALL_RSP_HANDLER(GetCharCreationInfo)
- CALL_RSP_HANDLER(GetCharacterToSelect)
- CALL_RSP_HANDLER(SelectCharacterID)
- CALL_RSP_HANDLER(GetAttributeTypes)
- CALL_RSP_HANDLER(MachoResolveObject)
- CALL_RSP_HANDLER(GetAppearanceInfo)
- CALL_RSP_HANDLER(ValidateName)
- CALL_RSP_HANDLER(CreateCharacter)*/
-
- BOUND_CALL_RSP_HANDLER(List)
+/* CALL_RSP_HANDLER(Ping)
+ CALL_RSP_HANDLER(GetCharCreationInfo)
+ CALL_RSP_HANDLER(GetCharacterToSelect)
+ CALL_RSP_HANDLER(SelectCharacterID)
+ CALL_RSP_HANDLER(GetAttributeTypes)
+ CALL_RSP_HANDLER(MachoResolveObject)
+ CALL_RSP_HANDLER(GetAppearanceInfo)
+ CALL_RSP_HANDLER(ValidateName)
+ CALL_RSP_HANDLER(CreateCharacter)*/
+
+ BOUND_CALL_RSP_HANDLER(List)
// BOUND_CALL_RSP_HANDLER(GetInventory)
- NOTIFY_HANDLER(DoDestinyUpdate)
-// NOTIFY_HANDLER(DoDestinyUpdates)
- NOTIFY_HANDLER(OnLSC)
-/* NOTIFY_HANDLER(OnAggressionChange)
- NOTIFY_HANDLER(OnMultiEvent)
- NOTIFY_HANDLER(OnRemoteExecute)
- NOTIFY_HANDLER(OnCharNoLongerInStation)
- NOTIFY_HANDLER(OnCharNowInStation)*/
+ NOTIFY_HANDLER(DoDestinyUpdate)
+// NOTIFY_HANDLER(DoDestinyUpdates)
+ NOTIFY_HANDLER(OnLSC)
+/* NOTIFY_HANDLER(OnAggressionChange)
+ NOTIFY_HANDLER(OnMultiEvent)
+ NOTIFY_HANDLER(OnRemoteExecute)
+ NOTIFY_HANDLER(OnCharNoLongerInStation)
+ NOTIFY_HANDLER(OnCharNowInStation)*/
#undef CALL_REQ_HANDLER
#undef CALL_RSP_HANDLER
View
22 include/eve-common/cache/CachedObjectMgr.h
@@ -208,17 +208,17 @@ class StringCollapseVisitor
public:
std::string result;
- bool VisitInteger( const PyInt* rep )
- {
- if( !result.empty() )
- result += ".";
-
- std::stringstream ss;
- ss << rep->value();
- result += ss.str();
-
- return true;
- }
+ bool VisitInteger( const PyInt* rep )
+ {
+ if( !result.empty() )
+ result += ".";
+
+ std::stringstream ss;
+ ss << rep->value();
+ result += ss.str();
+
+ return true;
+ }
bool VisitLong( const PyLong* rep ) { return false; }
bool VisitReal( const PyFloat* rep ) { return false; }
bool VisitBoolean( const PyBool* rep ) { return false; }
View
2  include/eve-common/database/RowsetReader.h
@@ -188,7 +188,7 @@ class TuplesetReader : public PyRowsetReader
*
* @author Zhur, Bloody.Rabbit
*/
-class SetSQLDumper
+class SetSQLDumper
: public PyVisitor
{
public:
View
52 include/eve-common/destiny/DestinyBinDump.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
#ifndef __DESTINYBINDUMP_H_INCL__
@@ -28,10 +28,10 @@
namespace Destiny {
- extern void DumpUpdate(LogType into, const uint8 *data, uint32 len);
- extern uint32 DumpBall(LogType into, const uint8 *data, uint32 len);
-
- extern const char *const DSTBALL_modeNames[];
+ extern void DumpUpdate(LogType into, const uint8 *data, uint32 len);
+ extern uint32 DumpBall(LogType into, const uint8 *data, uint32 len);
+
+ extern const char *const DSTBALL_modeNames[];
}
#endif
View
148 include/eve-common/destiny/DestinyStructs.h
@@ -1,26 +1,26 @@
/*
- ------------------------------------------------------------------------------------
- LICENSE:
- ------------------------------------------------------------------------------------
- This file is part of EVEmu: EVE Online Server Emulator
- Copyright 2006 - 2011 The EVEmu Team
- For the latest information visit http://evemu.org
- ------------------------------------------------------------------------------------
- This program is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2 of the License, or (at your option) any later
- version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place - Suite 330, Boston, MA 02111-1307, USA, or go to
- http://www.gnu.org/copyleft/lesser.txt.
- ------------------------------------------------------------------------------------
- Author: Zhur
+ ------------------------------------------------------------------------------------
+ LICENSE:
+ ------------------------------------------------------------------------------------
+ This file is part of EVEmu: EVE Online Server Emulator
+ Copyright 2006 - 2011 The EVEmu Team
+ For the latest information visit http://evemu.org
+ ------------------------------------------------------------------------------------
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ Place - Suite 330, Boston, MA 02111-1307, USA, or go to
+ http://www.gnu.org/copyleft/lesser.txt.
+ ------------------------------------------------------------------------------------
+ Author: Zhur
*/
/*
@@ -47,8 +47,8 @@ Vector acceleration = vector_to_goal * accel;
#define __DESTINY_STRUCTS_H__
#ifdef WIN32
- //VC++ whines a lot about the [0] structure sizes done in here...
- //#pragma warning(disable:4200)
+ //VC++ whines a lot about the [0] structure sizes done in here...
+ //#pragma warning(disable:4200)
#endif//WIN32
namespace Destiny {
@@ -61,19 +61,19 @@ struct AddBall_header {
};
typedef enum {
- DSTBALL_GOTO = 0, // Also used for AlignTo
- DSTBALL_FOLLOW = 1,
- DSTBALL_STOP = 2,
- DSTBALL_WARP = 3,
- DSTBALL_ORBIT = 4,
- DSTBALL_MISSILE = 5,
- DSTBALL_MUSHROOM = 6, //Expanding gravity wall
- DSTBALL_BOID = 7, //Swarm like behavior
- DSTBALL_TROLL = 8, //used for ejected cans. Free ball that will become fixed after a while.
- DSTBALL_MINIBALL = 9,
+ DSTBALL_GOTO = 0, // Also used for AlignTo
+ DSTBALL_FOLLOW = 1,
+ DSTBALL_STOP = 2,
+ DSTBALL_WARP = 3,
+ DSTBALL_ORBIT = 4,
+ DSTBALL_MISSILE = 5,
+ DSTBALL_MUSHROOM = 6, //Expanding gravity wall
+ DSTBALL_BOID = 7, //Swarm like behavior
+ DSTBALL_TROLL = 8, //used for ejected cans. Free ball that will become fixed after a while.
+ DSTBALL_MINIBALL = 9,
DSTBALL_FIELD = 10, //Force field ball
- DSTBALL_RIGID = 11, //A ball that will never move, stations, etc..
- DSTBALL_FORMATION = 12
+ DSTBALL_RIGID = 11, //A ball that will never move, stations, etc..
+ DSTBALL_FORMATION = 12
} BallMode;
static const uint8 MAX_DSTBALL = DSTBALL_FORMATION;
@@ -94,32 +94,32 @@ enum ball_sub_type
/** old nd shouldn't be used
enum {
- AddBallSubType_asteroidBelt = 2, //seen rigids
- AddBallSubType_cargoContainer_asteroid = 4, //and some NPCs and asteroids
+ AddBallSubType_asteroidBelt = 2, //seen rigids
+ AddBallSubType_cargoContainer_asteroid = 4, //and some NPCs and asteroids
AddBallSubType_orbitingNPC = 5,
- AddBallSubType_planet = 6, //star & moon too
+ AddBallSubType_planet = 6, //star & moon too
//subtype 8 gets put on some list during evolution.
//seen a player with 9.
AddBallSubType_player = 13,
AddBallSubType_dungeonEntrance = 64,
- AddBallSubType_station = 66 //stargate too
+ AddBallSubType_station = 66 //stargate too
};
*/
struct BallHeader {
uint64 entityID;
- uint8 mode; //see DSTBALL_
- float radius; //7.230769230769231e-3
- double x; //1.33638303942e12
- double y; //6.252761088e10
- double z; //4.1517330432e11
- uint8 sub_type; // seen 13
+ uint8 mode; //see DSTBALL_
+ float radius; //7.230769230769231e-3
+ double x; //1.33638303942e12
+ double y; //6.252761088e10
+ double z; //4.1517330432e11
+ uint8 sub_type; // seen 13
};
//included if not a RIGID body
struct MassSector {
double mass;
- uint8 cloak; // indicates cloak
+ uint8 cloak; // indicates cloak
uint64 allianceID;
uint32 corpID;
float Harmonic;
@@ -143,18 +143,18 @@ struct MiniBall {
};
struct MiniBallList {
- uint16 count;
- MiniBall balls[0];
+ uint16 count;
+ MiniBall balls[0];
};
struct NameStruct {
- uint8 name_len; //in 16 bit increments
- uint16 name[0]; //utf16
+ uint8 name_len; //in 16 bit increments
+ uint16 name[0]; //utf16
};
struct DSTBALL_GOTO_Struct {
uint8 formationID;
- double x; //object+0xD0 (as a set of 3)
+ double x; //object+0xD0 (as a set of 3)
double y;
double z;
};
@@ -171,10 +171,10 @@ struct DSTBALL_STOP_Struct {
struct DSTBALL_WARP_Struct {
uint8 formationID;
- double unknown_x; //object+0xD0 (as a set of 3)
+ double unknown_x; //object+0xD0 (as a set of 3)
double unknown_y;
double unknown_z;
- uint32 effectStamp; //might be a destiny sequence number (back)
+ uint32 effectStamp; //might be a destiny sequence number (back)
double followRange;
uint64 followID;
uint64 ownerID;
@@ -182,13 +182,13 @@ struct DSTBALL_WARP_Struct {
struct DSTBALL_ORBIT_Struct {
uint8 formationID;
- uint32 followID; //orbitID
+ uint32 followID; //orbitID
double followRange;
};
struct DSTBALL_MISSILE_Struct {
uint8 formationID;
- uint64 followID; //targetID
+ uint64 followID; //targetID
float followRange;
uint64 ownerID;
uint32 effectStamp;
@@ -207,7 +207,7 @@ struct DSTBALL_MUSHROOM_Struct {
struct DSTBALL_TROLL_Struct {
uint8 formationID;
- uint32 effectStamp; //is a destiny sequence number (forward)
+ uint32 effectStamp; //is a destiny sequence number (forward)
};