SHARE
TWEET

Untitled

a guest Feb 16th, 2019 189 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Screen
  2. {
  3. protected:
  4.     SDL_Renderer *rend = nullptr;
  5.     GameObject *screen = nullptr;
  6.     GameObject *arrow = nullptr;
  7. public:
  8.     Screen();
  9.     Screen(SDL_Renderer *renderer);
  10.     virtual ~Screen(){};
  11.     virtual void handleEvents(const Uint8 *keystate, bool *isSelecting, bool *isSingle, bool *isMulti){};
  12.     virtual void Update(){};
  13.     virtual void Render(){};
  14. };
  15.    
  16. class StartScreen: public Screen
  17. {
  18. public:
  19.     StartScreen(SDL_Renderer *renderer);
  20.     ~StartScreen();
  21.     virtual void handleEvents(const Uint8 *keystate, bool *isSelecting, bool *isSingle, bool *isMulti);
  22.     virtual void Update();
  23.     virtual void Render();
  24. };
  25.    
  26. class MultiplaySettingScreen: public Screen
  27. {
  28. private:
  29.     std::string connectingIp = "127.0.0.1";
  30.     std::string connectingPort = "80";
  31. public:
  32.     MultiplaySettingScreen();
  33.     ~MultiplaySettingScreen();
  34.     virtual void handleEvents(const Uint8 *keystate, bool *isSelecting, bool *isSingle, bool *isMulti);
  35.     virtual void Update();
  36.     virtual void Render();
  37. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top