summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-17 03:47:44 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-17 03:47:44 +0000
commit1d639b92a4487b21a29127f4fbe91d5b1d5d1952 (patch)
treede34b6b0e054dbac5e60d844f55d45f8abe7b517 /pokemod/CoinListObject.h
parent9ee13595462364eb9e48762778f8b3842f4b4026 (diff)
downloadsigen-1d639b92a4487b21a29127f4fbe91d5b1d5d1952.tar.gz
sigen-1d639b92a4487b21a29127f4fbe91d5b1d5d1952.tar.xz
sigen-1d639b92a4487b21a29127f4fbe91d5b1d5d1952.zip
[FIX] Added 2008 to copyrights
[FIX] Made exceptions better [FIX] Added RBY Move Effects (as well as val1 and val2 code) [FIX] Added breaks where missed [FIX] Grammar mistakes (factored out to Exceptions) [FIX] Cleaned up Species types and egg groups handling [FIX] Cleaned up Store items handling [FIX] Cleaned up Tile details git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@31 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinListObject.h')
-rw-r--r--pokemod/CoinListObject.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/pokemod/CoinListObject.h b/pokemod/CoinListObject.h
index 7b35e246..c636c992 100644
--- a/pokemod/CoinListObject.h
+++ b/pokemod/CoinListObject.h
@@ -4,7 +4,7 @@
// Author: Ben Boeckel
// Modified by: Ben Boeckel
// Created: Wed Feb 28 21:21:23 2007
-// Copyright: ©2007 Ben Boeckel and Nerdy Productions
+// Copyright: ©2007-2008 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
@@ -24,6 +24,7 @@
#define __POKEMOD_COINLISTOBJECT__
#include <QString>
+#include "../general/Exception.h"
#include "Object.h"
#include "Pokemod.h"
@@ -46,12 +47,12 @@ namespace PokeGen
CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id = UINT_MAX);
CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX);
- void load(const QString& fname, const unsigned _id = UINT_MAX);
- void save(const QString& coinList) const;
+ void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception);
+ void save(const QString& coinList) const throw(Exception);
- void setType(const unsigned t);
- void setObject(const unsigned o);
- void setAmount(const unsigned a);
+ void setType(const unsigned t) throw(BoundsException);
+ void setObject(const unsigned o) throw(BoundsException);
+ void setAmount(const unsigned a) throw(BoundsException);
void setCost(const unsigned c);
unsigned getType() const;