///////////////////////////////////////////////////////////////////////////// // Name: pokemod/Time.h // Purpose: Define the start of a time of day in the PokéMod // Author: Ben Boeckel // Modified by: Ben Boeckel // Created: Wed Feb 28 21:00:46 2007 // Copyright: ©2007 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 // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this program. If not, see . ///////////////////////////////////////////////////////////////////////////// #ifndef __POKEMOD_TIME__ #define __POKEMOD_TIME__ #include #include #include "Object.h" #include "Pokemod.h" namespace PokeGen { namespace PokeMod { class Time : public Object { public: Time(const Pokemod* par, const unsigned _id); Time(const Pokemod* par, Ini& ini, const unsigned _id = UINT_MAX); void ImportIni(Ini& ini, const unsigned _id = UINT_MAX); void ExportIni(QFile& fout) const; void SetName(const QString& n); bool SetStartHour(const unsigned h); bool SetStartMinute(const unsigned m); QString GetName() const; unsigned GetStartHour() const; unsigned GetStartMinute() const; private: bool Validate(); QString name; unsigned startHour; unsigned startMinute; }; } } #endif