Files
wagic/projects/mtg/include/GameStateAwards.h
techdragon.nguyen@gmail.com a2179017d4 Extended Scroll() and OnScroll() to also take in magnitude as one of its parameters. magnitude is currently used in the deck editor to figure out how many cards to rotate around per swipe as function of velocity and the number of cards displayed on the screen.
fixed a compiler warning in SimplePopup in the constructor declaration
===DECK Editor changes ===
Added two touch buttons , one for "Sell Card", the other to switch between Deck and Collection.
changed swipe Left/Right to rotate card collection; removing the previous action which was to swap between deck/collection viewing

Note: GameStateDeckViewer isn't a JGuiController so can't leverage off the mButtons vector.  Thus, the buttons have to be handled by this class separately. (setButtonState, userPressedButton)
2012-01-26 13:53:03 +00:00

42 lines
904 B
C++

#ifndef _GAME_STATE_AWARDS_H_
#define _GAME_STATE_AWARDS_H_
#include <JGE.h>
#include "GameState.h"
#include "SimpleMenu.h"
class WGuiList;
class WGuiMenu;
class WSrcCards;
class GameStateAwards: public GameState, public JGuiListener
{
private:
WGuiList * listview;
WGuiMenu * detailview;
WSrcCards * setSrc;
SimpleMenu * menu;
bool showMenu;
bool showAlt;
bool saveMe;
int mState;
int mDetailItem;
public:
GameStateAwards(GameApp* parent);
bool enterSet(int setid);
bool enterStats(int option);
virtual ~GameStateAwards();
virtual void Start();
virtual void End();
virtual void Create();
virtual void Destroy();
virtual void Update(float dt);
virtual void Render();
virtual void ButtonPressed(int controllerId, int controlId);
virtual void OnScroll(int inXVelocity, int inYVelocity, int magnitude = 0);
};
#endif