Rename Button to ButtonPressed

This commit is contained in:
Tobias Loose
2013-12-05 22:11:48 +01:00
parent 1194463349
commit 077ab10c05
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ public:
virtual void Render() = 0; virtual void Render() = 0;
virtual MTGCard * Click(int x, int y) = 0; virtual MTGCard * Click(int x, int y) = 0;
bool Button(Buttons button); bool ButtonPressed(Buttons button);
virtual MTGCard *getActiveCard() = 0; virtual MTGCard *getActiveCard() = 0;
virtual void changePosition(int offset) = 0; virtual void changePosition(int offset) = 0;
virtual void changeFilter(int offset) = 0; virtual void changeFilter(int offset) = 0;
+1 -1
View File
@@ -42,7 +42,7 @@ void DeckView::Update(float dt)
} }
} }
bool DeckView::Button(Buttons button) bool DeckView::ButtonPressed(Buttons button)
{ {
switch(button) switch(button)
{ {
+1 -1
View File
@@ -424,7 +424,7 @@ void GameStateDeckViewer::Update(float dt)
case JGE_BTN_DOWN: case JGE_BTN_DOWN:
if(last_user_activity > 0.2) if(last_user_activity > 0.2)
{ {
mView->Button(button); mView->ButtonPressed(button);
last_user_activity = 0; last_user_activity = 0;
mStage = STAGE_WAITING; mStage = STAGE_WAITING;
} }