summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-22 03:51:45 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-22 03:51:45 +0000
commite858d98977a09b3c8faf4df87ada4abc1399e8e5 (patch)
treefbe406e42296b784cf03ae65cb9cbccb97aa7fa8 /pokemod/CoinList.h
parent0fec318eac634e5465c30eb73d47ec82aaed9db8 (diff)
downloadsigen-e858d98977a09b3c8faf4df87ada4abc1399e8e5.tar.gz
sigen-e858d98977a09b3c8faf4df87ada4abc1399e8e5.tar.xz
sigen-e858d98977a09b3c8faf4df87ada4abc1399e8e5.zip
Added a lot of minor PokéMod modules
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@12 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinList.h')
-rw-r--r--pokemod/CoinList.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/pokemod/CoinList.h b/pokemod/CoinList.h
new file mode 100644
index 00000000..0b5f3aef
--- /dev/null
+++ b/pokemod/CoinList.h
@@ -0,0 +1,72 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: pokemod/CoinList.h
+// Purpose: A specialty store where Pokémon and items can be gotten for
+// coins won through gambling
+// Author: Ben Boeckel
+// Modified by: Ben Boeckel
+// Created: Wed Feb 28 21:16:29 2007
+// Copyright: ©2007 Ben Boeckel and Nerdy Productions
+// Licence:
+// 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
+// (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 General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this program; if not, write to the Free Software Foundation, Inc.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef __POKEMOD_COINLIST__
+#define __POKEMOD_COINLIST__
+
+#include <vector>
+#include "Object.h"
+#include "String.h"
+#include "Pokemod.h"
+#include "CoinItem.h"
+
+namespace PokeGen
+{
+ namespace PokeMod
+ {
+ class CoinList : public Object
+ {
+ public:
+ CoinList(unsigned _id);
+ CoinList(Ini &ini, unsigned _id = UINT_MAX);
+ ~CoinList();
+
+ void ImportIni(Ini &ini, unsigned _id = UINT_MAX);
+ void ExportIni(std::ofstream &fout);
+
+ void SetName(const String &n);
+ void SetValue(unsigned v);
+
+ String GetName() const;
+ unsigned GetValue() const;
+
+ CoinItem *GetCoinItem(unsigned _id);
+ unsigned GetCoinItemCount() const;
+ void NewCoinItem(Ini *const ini);
+ void DeleteCoinItem(unsigned _id);
+ private:
+ void Validate();
+# ifdef PG_DEBUG_WINDOW
+ void Validate(const wxListBox &output);
+# endif
+
+ String name;
+ unsigned value;
+
+ std::vector<CoinItem> items;
+ };
+ }
+}
+
+#endif