working on reusable screens: instead of starting tweens in Init, just load actors in Init and begin tweening in BeginScreen (along with anything else needed to start or restart a screen). Many things done in FirstUpdate can probably be moved here, too.

This commit is contained in:
Glenn Maynard
2005-07-15 01:16:05 +00:00
parent 47d9ac8567
commit 3574f57624
+4
View File
@@ -38,6 +38,10 @@ public:
/* This is called immediately after construction, to allow initializing after all derived classes
* exist. */
virtual void Init();
/* This is called immediately before the screen is used. */
virtual void BeginScreen() { }
virtual void Update( float fDeltaTime );
virtual bool OverlayInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );