summaryrefslogtreecommitdiff
path: root/src/const
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-13 22:45:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-13 22:45:52 +0300
commitac3ccda23ac4b5c69e15147b8082d90df2ac23de (patch)
tree593f2899e1891d8c5a6af47349570fb793e7ff79 /src/const
parent6849c5919c02b4cf97de91c801b542e36eb089ce (diff)
downloadmv-ac3ccda23ac4b5c69e15147b8082d90df2ac23de.tar.gz
mv-ac3ccda23ac4b5c69e15147b8082d90df2ac23de.tar.bz2
mv-ac3ccda23ac4b5c69e15147b8082d90df2ac23de.tar.xz
mv-ac3ccda23ac4b5c69e15147b8082d90df2ac23de.zip
Move spells and graphics related constants into separate files.
Diffstat (limited to 'src/const')
-rw-r--r--src/const/render/graphics.h31
-rw-r--r--src/const/spells.h32
2 files changed, 63 insertions, 0 deletions
diff --git a/src/const/render/graphics.h b/src/const/render/graphics.h
new file mode 100644
index 000000000..abafd00cc
--- /dev/null
+++ b/src/const/render/graphics.h
@@ -0,0 +1,31 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2004-2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * Copyright (C) 2011-2015 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef CONST_RENDER_GRAPHICS_H
+#define CONST_RENDER_GRAPHICS_H
+
+#include "localconsts.h"
+
+static const int defaultScreenWidth = 800;
+static const int defaultScreenHeight = 600;
+
+#endif // CONST_RENDER_GRAPHICS_H
diff --git a/src/const/spells.h b/src/const/spells.h
new file mode 100644
index 000000000..3f75fbe5d
--- /dev/null
+++ b/src/const/spells.h
@@ -0,0 +1,32 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2009-2010 Andrei Karas
+ * Copyright (C) 2011-2015 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef CONST_SPELLMINID_H
+#define CONST_SPELLMINID_H
+
+#include "localconsts.h"
+
+const int SPELL_MIN_ID = 100000;
+const unsigned int SPELL_SHORTCUT_ITEMS = 49;
+const unsigned int SPELL_SHORTCUT_TABS = 5;
+const unsigned int SPELLS_SIZE = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS;
+
+#endif // CONST_SPELLMINID_H