diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-07-03 04:20:36 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-07-03 04:20:36 +0000 |
| commit | 65cc463f1d91fe99acf1c4dd9bce7e0038593022 (patch) | |
| tree | 95644c3c42a4a23db50dc42722cdeb4489427e14 /pokemod/MapEffect.cpp | |
| parent | 9102febc37475af113681eaaee02ecc2ea04b4da (diff) | |
Fixed Logging, minor fixes, got rid of NatureEffect, and started migration from wxGTK to Qt
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@22 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MapEffect.cpp')
| -rw-r--r-- | pokemod/MapEffect.cpp | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp index bcafce8d..92d8089e 100644 --- a/pokemod/MapEffect.cpp +++ b/pokemod/MapEffect.cpp @@ -121,88 +121,6 @@ void PokeGen::PokeMod::MapEffect::Validate() LogValidateOver("MapEffect", id, isValid, name);
}
-#ifdef PG_DEBUG_WINDOW
-void PokeGen::PokeMod::MapEffect::Validate(const wxListBox &output)
-{
- LogValidateStart("MapEffect", id, name);
- if (name == "")
- {
- LogVarNotSet("MapEffect", id, "name");
- output.Append(ConsoleLogVarNotSet("MapEffect", id, "name"));
- isValid = false;
- }
- if (FV_END <= existFlag.GetStatus())
- {
- LogVarNotValid("MapEffect", id, "existFlag value", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "existFlag value", name));
- isValid = false;
- }
- if (!skin.DoesExist())
- {
- if (skin == "")
- {
- LogVarNotSet("MapEffect", id, "skin", name);
- output.Append(ConsoleLogVarNotSet("MapEffect", id, "skin", name));
- }
- else
- {
- LogVarNotValid("MapEffect", id, "skin", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "skin", name));
- }
- isValid = false;
- }
- if (MAPE_END <= effect)
- {
- LogVarNotValid("MapEffect", id, "effect", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "effect", name));
- isValid = false;
- }
- else
- {
- switch (effect)
- {
- case MAPE_ITEM:
- if (!pokemod->GetItem(val2))
- {
- LogVarNotValid("MapEffect", id, "val2", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name));
- isValid = false;
- }
- break;
- case MAPE_PC:
- if (PCT_END <= val2)
- {
- LogVarNotValid("MapEffect", id, "val2", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name));
- isValid = false;
- }
- break;
- case MAPE_STRENGTH_BLOCK:
- case MAPE_BUTTON:
- if (FV_END <= val2)
- {
- LogVarNotValid("MapEffect", id, "val2", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name));
- isValid = false;
- }
- }
- }
- if (DIR_END <= direction)
- {
- LogVarNotValid("MapEffect", id, "direction", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "direction", name));
- isValid = false;
- }
- if (!pokemod->GetDialog(dialog))
- {
- LogVarNotValid("MapEffect", id, "dialog", name);
- output.Append(ConsoleLogVarNotValid("MapEffect", id, "dialog", name));
- isValid = false;
- }
- LogValidateOver("MapEffect", id, isValid, name);
-}
-#endif
-
void PokeGen::PokeMod::MapEffect::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("MapEffect");
|
