diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-06-22 17:46:50 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-06-22 17:46:50 +0000 |
| commit | 5c3ca621f75587173bab3d946aee81dd2d36f495 (patch) | |
| tree | 2d64b74bbe323a582cdc17f0a442c5ff1b48038e /pokemod/StatusEffect.cpp | |
| parent | 3595239f08f2bc1df32ef22ed6de9bde10ca3384 (diff) | |
Pokemod validation, paths made to default
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@20 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/StatusEffect.cpp')
| -rw-r--r-- | pokemod/StatusEffect.cpp | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/pokemod/StatusEffect.cpp b/pokemod/StatusEffect.cpp index c9b1f401..46a70a4c 100644 --- a/pokemod/StatusEffect.cpp +++ b/pokemod/StatusEffect.cpp @@ -23,8 +23,6 @@ #include "StatusEffect.h"
-extern PokeGen::PokeMod::Pokemod curPokeMod;
-
PokeGen::PokeMod::StatusEffect::StatusEffect(const unsigned _id) :
effect(UINT_MAX),
val1(UINT_MAX),
@@ -50,8 +48,33 @@ PokeGen::PokeMod::StatusEffect::~StatusEffect() void PokeGen::PokeMod::StatusEffect::Validate()
{
LogValidateStart("StatusEffect", id);
+ if (effect < SE_END)
+ {
+ switch (effect)
+ {
+ //case :
+ {
+ LogVarNotValid("StatusEffect", id, "val1");
+ isValid = false;
+ }
+ break;
+ }
+ switch (effect)
+ {
+ //case :
+ {
+ LogVarNotValid("StatusEffect", id, "val1");
+ isValid = false;
+ }
+ break;
+ }
+ }
+ else
+ {
+ LogVarNotValid("StatusEffect", id, "effect");
+ isValid = false;
+ }
// TODO (Validation#1#): Validation
-# warning "StatusEffect Validation"
LogValidateOver("StatusEffect", id, isValid);
}
|
