Browse Source

- Follow-up to r15837, fixed compiler error due to missing header file
- Cleaned upper-case file naming which goes against coding standards

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15838 54d463be-8e91-2dee-dedb-b68131a5f0ec

epoque11 13 năm trước cách đây
mục cha
commit
694123790f

+ 2 - 2
src/map/Makefile.in

@@ -40,8 +40,8 @@ MAP_H = map.h chrif.h clif.h pc.h status.h npc.h \
 	intif.h trade.h party.h vending.h guild.h pet.h \
 	log.h mail.h date.h unit.h homunculus.h mercenary.h quest.h instance.h mapreg.h \
 	buyingstore.h searchstore.h duel.h pc_groups.h \
-	config/Core.h config/Renewal.h config/Secure.h config/Data/Const.h \
-	config/Skills/General.h config/Skills/Swordsman_Classes.h
+	config/core.h config/renewal.h config/secure.h config/const.h \
+	config/classes/general.h config/classes/swordsman.h
 
 HAVE_MYSQL=@HAVE_MYSQL@
 ifeq ($(HAVE_MYSQL),yes)

+ 24 - 25
src/map/config/Skills/General.h → src/map/config/classes/general.h

@@ -1,25 +1,24 @@
-// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
-#ifndef _CONFIG_GENERAL_H_
-#define _CONFIG_GENERAL_H_
-
-/**
- * rAthena configuration file (http://rathena.org)
- * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
- **/
-
-/**
- * Default Magical Reflection Behavior
- * - When reflecting, reflected damage depends on gears caster is wearing, not target
- * - When disabled damage depends on gears target is wearing, not caster.
- * @values 1 (enabled) or 0 (disabled)
- **/
-#define MAGIC_REFLECTION_TYPE 1
-
-/**
- * No settings past this point
- **/
-#include "Mage_Classes.h"
-#include "Swordsman_Classes.h"
-
-#endif // _CONFIG_GENERAL_H_
+// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+#ifndef _CONFIG_GENERAL_H_
+#define _CONFIG_GENERAL_H_
+
+/**
+ * rAthena configuration file (http://rathena.org)
+ * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
+ **/
+
+/**
+ * Default Magical Reflection Behavior
+ * - When reflecting, reflected damage depends on gears caster is wearing, not target
+ * - When disabled damage depends on gears target is wearing, not caster.
+ * @values 1 (enabled) or 0 (disabled)
+ **/
+#define MAGIC_REFLECTION_TYPE 1
+
+/**
+ * No settings past this point
+ **/
+#include "swordsman.h"
+
+#endif // _CONFIG_GENERAL_H_

+ 16 - 16
src/map/config/Skills/Swordsman_Classes.h → src/map/config/classes/swordsman.h

@@ -1,16 +1,16 @@
-// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
-#ifndef _CONFIG_SKILLS_SWORDS_H_
-#define _CONFIG_SKILLS_SWORDS_H_
-/**
- * rAthena configuration file (http://rathena.org)
- * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
- **/
-
-/// rune knight
-///
-/// maximum number of runes that a rune knight character can carry at any given time
-/// default: 20
-#define MAX_RUNE 20
-
-#endif // _CONFIG_SKILLS_SWORDS_H_
+// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+#ifndef _CONFIG_SKILLS_SWORDS_H_
+#define _CONFIG_SKILLS_SWORDS_H_
+/**
+ * rAthena configuration file (http://rathena.org)
+ * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
+ **/
+
+/// rune knight
+///
+/// maximum number of runes that a rune knight character can carry at any given time
+/// default: 20
+#define MAX_RUNE 20
+
+#endif // _CONFIG_SKILLS_SWORDS_H_

+ 72 - 72
src/map/config/Data/Const.h → src/map/config/const.h

@@ -1,72 +1,72 @@
-// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
-#ifndef _RRCONFIGS_CONST_
-#define _RRCONFIGS_CONST_
-
-/**
- * rAthena configuration file (http://rathena.org)
- * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
- **/
-
-/**
- * @INFO: This file holds constants that aims at making code smoother and more efficient
- */
-
-/**
- * "Constants"
- **/
-#ifdef RENEWAL_CAST
-
-	#ifndef RENEWAL
-		#error RENEWAL_CAST requires RENEWAL enabled
-	#endif
-
-	#define CONST_CASTRATE_SCALE RENEWAL_CAST_VMIN
-	/**
-	 * Cast Rate Formula: (DEX x 2)+INT
-	 **/
-	#define CONST_CASTRATE_CALC ((status_get_dex(bl)*2)+status_get_int(bl))
-#else
-	#define CONST_CASTRATE_SCALE battle_config.castrate_dex_scale
-	/**
-	 * Cast Rate Formula: (DEX)
-	 **/
-	#define CONST_CASTRATE_CALC (status_get_dex(bl))
-#endif
-
-/**
- * "Sane Checks" to save you from compiling with cool bugs 
- **/
-#if SECURE_NPCTIMEOUT_INTERVAL <= 0
-	#error SECURE_NPCTIMEOUT_INTERVAL should be at least 1 (1s)
-#endif
-#if SECURE_NPCTIMEOUT < 0
-	#error SECURE_NPCTIMEOUT cannot be lower than 0
-#endif
-
-/**
- * Path within the /db folder to (non-)renewal specific db files
- **/
-#ifdef RENEWAL
-	#define DBPATH "re/"
-#else
-	#define DBPATH "pre-re/"
-#endif
-
-/**
- * DefType
- **/
-#ifdef RENEWAL
-	typedef short defType;
-	#define DEFTYPE_MIN SHRT_MIN
-	#define DEFTYPE_MAX SHRT_MAX
-#else
-	typedef signed char defType;
-	#define DEFTYPE_MIN CHAR_MIN
-	#define DEFTYPE_MAX CHAR_MAX
-#endif
-
-/**
- * End of File
- **/
-#endif
+// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+#ifndef _RRCONFIGS_CONST_
+#define _RRCONFIGS_CONST_
+
+/**
+ * rAthena configuration file (http://rathena.org)
+ * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
+ **/
+
+/**
+ * @INFO: This file holds constants that aims at making code smoother and more efficient
+ */
+
+/**
+ * "Constants"
+ **/
+#ifdef RENEWAL_CAST
+
+	#ifndef RENEWAL
+		#error RENEWAL_CAST requires RENEWAL enabled
+	#endif
+
+	#define CONST_CASTRATE_SCALE RENEWAL_CAST_VMIN
+	/**
+	 * Cast Rate Formula: (DEX x 2)+INT
+	 **/
+	#define CONST_CASTRATE_CALC ((status_get_dex(bl)*2)+status_get_int(bl))
+#else
+	#define CONST_CASTRATE_SCALE battle_config.castrate_dex_scale
+	/**
+	 * Cast Rate Formula: (DEX)
+	 **/
+	#define CONST_CASTRATE_CALC (status_get_dex(bl))
+#endif
+
+/**
+ * "Sane Checks" to save you from compiling with cool bugs 
+ **/
+#if SECURE_NPCTIMEOUT_INTERVAL <= 0
+	#error SECURE_NPCTIMEOUT_INTERVAL should be at least 1 (1s)
+#endif
+#if SECURE_NPCTIMEOUT < 0
+	#error SECURE_NPCTIMEOUT cannot be lower than 0
+#endif
+
+/**
+ * Path within the /db folder to (non-)renewal specific db files
+ **/
+#ifdef RENEWAL
+	#define DBPATH "re/"
+#else
+	#define DBPATH "pre-re/"
+#endif
+
+/**
+ * DefType
+ **/
+#ifdef RENEWAL
+	typedef short defType;
+	#define DEFTYPE_MIN SHRT_MIN
+	#define DEFTYPE_MAX SHRT_MAX
+#else
+	typedef signed char defType;
+	#define DEFTYPE_MIN CHAR_MIN
+	#define DEFTYPE_MAX CHAR_MAX
+#endif
+
+/**
+ * End of File
+ **/
+#endif

+ 5 - 4
src/map/config/Core.h → src/map/config/core.h

@@ -28,12 +28,13 @@
 /**
  * No settings past this point
  **/
-#include "./Renewal.h"
-#include "./Secure.h"
-#include "./Skills/General.h"
+#include "./renewal.h"
+#include "./secure.h"
+#include "./classes/general.h"
+
 /**
  * Constants come last; so they process anything that could've been modified in early includes
  **/
-#include "./Data/Const.h"
+#include "./const.h"
 
 #endif // _CONFIG_CORE_H_

+ 0 - 0
src/map/config/Renewal.h → src/map/config/renewal.h


+ 0 - 0
src/map/config/Secure.h → src/map/config/secure.h


+ 6 - 7
vcproj-10/map-server_sql.vcxproj

@@ -182,13 +182,12 @@
     <ClInclude Include="..\src\map\pc_groups.h" />
     <ClInclude Include="..\src\map\pet.h" />
     <ClInclude Include="..\src\map\quest.h" />
-    <ClInclude Include="..\src\map\config\Core.h" />
-    <ClInclude Include="..\src\map\config\Renewal.h" />
-    <ClInclude Include="..\src\map\config\Secure.h" />
-    <ClInclude Include="..\src\map\config\Data\Const.h" />
-    <ClInclude Include="..\src\map\config\Skills\General.h" />
-    <ClInclude Include="..\src\map\config\Skills\Mage_Classes.h" />
-    <ClInclude Include="..\src\map\config\Skills\Swordsman_Classes.h" />
+    <ClInclude Include="..\src\map\config\const.h" />
+    <ClInclude Include="..\src\map\config\core.h" />
+    <ClInclude Include="..\src\map\config\renewal.h" />
+    <ClInclude Include="..\src\map\config\secure.h" />
+    <ClInclude Include="..\src\map\config\classes\general.h" />
+    <ClInclude Include="..\src\map\config\classes\swordsman.h" />
     <ClInclude Include="..\src\map\script.h" />
     <ClInclude Include="..\src\map\searchstore.h" />
     <ClInclude Include="..\src\map\skill.h" />

+ 6 - 7
vcproj-10/map-server_sql.vcxproj.filters

@@ -342,13 +342,12 @@
     <ClInclude Include="..\src\common\utils.h">
       <Filter>common</Filter>
     </ClInclude>
-    <ClInclude Include="..\src\map\config\Core.h" />
-    <ClInclude Include="..\src\map\config\Renewal.h" />
-    <ClInclude Include="..\src\map\config\Secure.h" />
-    <ClInclude Include="..\src\map\config\Data\Const.h" />
-    <ClInclude Include="..\src\map\config\Skills\General.h" />
-    <ClInclude Include="..\src\map\config\Skills\Mage_Classes.h" />
-    <ClInclude Include="..\src\map\config\Skills\Swordsman_Classes.h" />
+    <ClInclude Include="..\src\map\config\const.h" />
+    <ClInclude Include="..\src\map\config\core.h" />
+    <ClInclude Include="..\src\map\config\renewal.h" />
+    <ClInclude Include="..\src\map\config\secure.h" />
+    <ClInclude Include="..\src\map\config\classes\general.h" />
+    <ClInclude Include="..\src\map\config\classes\swordsman.h" />
     <ClInclude Include="..\src\common\conf.h">
       <Filter>common</Filter>
     </ClInclude>

+ 6 - 10
vcproj-9/map-server_sql.vcproj

@@ -496,11 +496,11 @@
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Data\Const.h"
+				RelativePath="..\src\map\config\const.h"
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Core.h"
+				RelativePath="..\src\map\config\core.h"
 				>
 			</File>
 			<File
@@ -520,7 +520,7 @@
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Skills\General.h"
+				RelativePath="..\src\map\config\classes\general.h"
 				>
 			</File>
 			<File
@@ -571,10 +571,6 @@
 				RelativePath="..\src\map\log.h"
 				>
 			</File>
-			<File
-				RelativePath="..\src\map\config\Skills\Mage_Classes.h"
-				>
-			</File>
 			<File
 				RelativePath="..\src\map\mail.c"
 				>
@@ -676,7 +672,7 @@
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Renewal.h"
+				RelativePath="..\src\map\config\renewal.h"
 				>
 			</File>
 			<File
@@ -696,7 +692,7 @@
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Secure.h"
+				RelativePath="..\src\map\config\secure.h"
 				>
 			</File>
 			<File
@@ -724,7 +720,7 @@
 				>
 			</File>
 			<File
-				RelativePath="..\src\map\config\Skills\Swordsman_Classes.h"
+				RelativePath="..\src\map\config\classes\swordsman.h"
 				>
 			</File>
 			<File