From 1d639b92a4487b21a29127f4fbe91d5b1d5d1952 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 17 Jan 2008 03:47:44 +0000 Subject: [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 --- pokemod/CoinListObject.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'pokemod/CoinListObject.h') 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 +#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; -- cgit