Newer
Older
Import / applications / HighwayDash / ports / Game / States / SelectorState.h
@John John on 29 Dec 2020 825 bytes bulk import from macbookpro checkouts
//  BlockyFroggy
//  Copyright © 2017 John Ryland.
//  All rights reserved.
#pragma once
#ifndef SELECTOR_STATE_H
#define SELECTOR_STATE_H


#include "BaseGameState.h"
#include "GameSim.h"


class SelectorState : public BaseGameState
{
public:
  const char* getName() const override { return "SelectorState"; }
  void enter(GameGraphics& graphics) override;
  //void exit(GameGraphics& /*graphics*/) override;
  void draw(GameGraphics& graphics) override;
  bool update(GameUi::UpdateState& state, float elapsed) override;
  //bool touchesChanged(int a_x, int a_y, TouchState ts) override;
  void getScriptCallableFunctions(const struct luaL_Reg* &list, int &count) override;
private:
  // Mouse/Touch state
  bool   m_touchMoving;
  float  m_touchX, m_touchY;
//  int    m_editModel = 0;
};


#endif // SELECTOR_STATE_H