123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef CLOCK_ALARM_HPP
- #define CLOCK_ALARM_HPP
- #include <cpp3ds/Graphics/Drawable.hpp>
- #include <cpp3ds/Graphics/Text.hpp>
- #include <cpp3ds/Window/Event.hpp>
- #include <cpp3ds/System/Clock.hpp>
- #include "TweenObjects.hpp"
- #include "AlarmItem.hpp"
- #include <TweenEngine/Tween.h>
- #include <TweenEngine/TweenManager.h>
- #ifndef EMULATION
- #include <3ds.h>
- #endif
- namespace Clock {
- class Alarm : public cpp3ds::Drawable, public util3ds::TweenTransformable<cpp3ds::Transformable> {
- public:
- void update(float delta);
- void processEvent(const cpp3ds::Event& event);
- Alarm();
- ~Alarm();
- void saveAlarms();
- void loadAlarms();
- protected:
- virtual void draw(cpp3ds::RenderTarget& target, cpp3ds::RenderStates states) const;
- private:
- std::vector<std::shared_ptr<AlarmItem>> m_alarmItems;
- TweenEngine::TweenManager m_tweenManager;
- };
- } // namespace Clock
- #endif // CLOCK_ALARM_HPP
|