From ce38f43efebbedd97dfe5fb5de31e0b0f798d92d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 18 Jan 2009 19:04:35 -0500 Subject: Changed MapTrainer coordinate to position --- sigscript/MapTrainerWrapper.cpp | 8 +++++++- sigscript/MapTrainerWrapper.h | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'sigscript') diff --git a/sigscript/MapTrainerWrapper.cpp b/sigscript/MapTrainerWrapper.cpp index c8b6e2f4..6a630d3c 100644 --- a/sigscript/MapTrainerWrapper.cpp +++ b/sigscript/MapTrainerWrapper.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * 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 @@ -47,6 +47,12 @@ Sigscript::TrainerWrapper* Sigscript::MapTrainerWrapper::trainerClass() return sigmod()->trainer(m_trainer->trainerClass()); } +QPoint Sigscript::MapTrainerWrapper::position() const +{ + ALLOW_OVERRIDE_SO(trainer, QPoint, position); + return m_trainer->position(); +} + int Sigscript::MapTrainerWrapper::numberFight() const { return m_trainer->numberFight(); diff --git a/sigscript/MapTrainerWrapper.h b/sigscript/MapTrainerWrapper.h index 2e91422e..0e87f2ee 100644 --- a/sigscript/MapTrainerWrapper.h +++ b/sigscript/MapTrainerWrapper.h @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * 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 @@ -40,6 +40,7 @@ class SIGSCRIPT_EXPORT MapTrainerWrapper : public ObjectWrapper Q_SCRIPTABLE QString name() const; Q_SCRIPTABLE TrainerWrapper* trainerClass(); + Q_SCRIPTABLE QPoint position() const; Q_SCRIPTABLE int numberFight() const; Q_SCRIPTABLE MapTrainerTeamMemberWrapper* leadTeamMember(); Q_SCRIPTABLE Sigcore::Script script() const; -- cgit