22 #ifndef NANCY_STATE_CREDITS_H 23 #define NANCY_STATE_CREDITS_H 25 #include "common/singleton.h" 27 #include "engines/nancy/time.h" 28 #include "engines/nancy/commontypes.h" 30 #include "engines/nancy/state/state.h" 32 #include "engines/nancy/ui/fullscreenimage.h" 40 enum State { kInit, kRun };
41 Credits() : _state(kInit), _background(), _textSurface(1), _currentTextImage(0), _creditsData(
nullptr) {}
44 void process()
override;
45 void onStateEnter(
const NancyState::NancyState prevState)
override;
46 bool onStateExit(
const NancyState::NancyState nextState)
override;
52 void drawTextSurface(uint
id);
54 const CRED *_creditsData;
61 uint _currentTextImage;
64 #define NancyCreditsState Nancy::State::Credits::instance() 69 #endif // NANCY_STATE_CREDITS_H Definition: managed_surface.h:51
Definition: enginedata.h:220
Definition: renderobject.h:36
Definition: fullscreenimage.h:30
Definition: actionmanager.h:32
Definition: singleton.h:42