2017-01-10 12:43:06 +00:00
|
|
|
#ifndef MENUCODE_H_INCLUDED
|
|
|
|
#define MENUCODE_H_INCLUDED
|
|
|
|
|
|
|
|
#include "include/Engine.h"
|
|
|
|
#include "game_area_interface.h"
|
2018-05-24 11:44:58 +00:00
|
|
|
#include "galaxy_menu.h"
|
2017-01-10 12:43:06 +00:00
|
|
|
|
|
|
|
using namespace SE;
|
|
|
|
|
|
|
|
|
|
|
|
class TGameMenu : public TGameAreaAncestor
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
float MenuSpeed;
|
|
|
|
float MenuPos;
|
|
|
|
|
|
|
|
bool HoldToTap;
|
|
|
|
|
|
|
|
int MenuItemCount;
|
|
|
|
|
|
|
|
int SelectedGame;
|
2018-12-01 09:47:26 +00:00
|
|
|
|
|
|
|
int GameState;
|
2017-01-10 12:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
TGameMenu();
|
|
|
|
virtual void Draw();
|
2017-11-14 17:04:04 +00:00
|
|
|
virtual void Update(size_t dt);
|
|
|
|
virtual void OnTapDown(Vector2f pos);
|
|
|
|
virtual void OnTapUp(Vector2f pos);
|
|
|
|
virtual void OnTapUpAfterMove(Vector2f pos);
|
|
|
|
virtual void OnFling(Vector2f slideSpeed);
|
|
|
|
virtual void OnScroll(Vector2f shift);
|
2017-01-10 12:43:06 +00:00
|
|
|
|
|
|
|
void OpenNextLevel();
|
|
|
|
int GetMenuItemCount();
|
|
|
|
void SetMenuItemCount(int menuItemCount);
|
2018-12-01 09:47:26 +00:00
|
|
|
void SetGameState(int gameState);
|
2017-01-10 12:43:06 +00:00
|
|
|
|
2018-05-24 11:44:58 +00:00
|
|
|
/*..Galaxy Menu..*/
|
|
|
|
GalaxyMenu GalaxMenu;
|
|
|
|
|
2017-01-10 12:43:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|