From 807071d35159de0660f9df31c48d5bf895ca3622 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 27 Apr 2008 15:15:17 +0000 Subject: [FIX] Pokemod objects now know about parents [FIX] Project includes are now relative [FIX] Headers included for better detection of invalid headers [FIX] Validation code commented out so it can be done better git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@111 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/MoveUI.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pokemodr/MoveUI.cpp') diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index c9d2ba76..13603648 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -15,16 +15,16 @@ * with this program. If not, see . */ -// General includes -#include -#include +// Header include +#include "MoveUI.h" // Pokemod includes -#include -#include +#include "../pokemod/Pokemod.h" +#include "../pokemod/Type.h" -// Header include -#include "MoveUI.h" +// General includes +#include "../general/BugCatcher.h" +#include "../general/Exception.h" MoveUI::MoveUI(Move* move, QWidget* parent) : ObjectUI(parent), @@ -47,13 +47,13 @@ void MoveUI::initGui() void MoveUI::refreshGui() { varType->clear(); - for (int i = 0; i < m_move->pokemod()->typeCount(); ++i) + for (int i = 0; i < static_cast(m_move->pokemod())->typeCount(); ++i) { - const Type* type = m_move->pokemod()->type(i); + const Type* type = static_cast(m_move->pokemod())->type(i); varType->addItem(type->name()); varType->setItemData(i, type->id()); } - varNumTargets->setMaximum(m_move->pokemod()->rules()->maxFight()); + varNumTargets->setMaximum(static_cast(m_move->pokemod())->rules()->maxFight()); } void MoveUI::setGui() -- cgit