Right mouse click as shortcut for action on hand zone.
parent
86e4fa2b9d
commit
983e339697
|
@ -23,13 +23,22 @@ The Vegas AI should be fast on all difficulty levels.
|
|||
|
||||
Thanks to everyone one the CCGHQ forum (slightlymagic.net).
|
||||
Thanks to epiko for creating the very nice Magarena logo and the amazing color themes.
|
||||
Thanks to Salasnet for the felt theme.
|
||||
Thanks to Salasnet for the felt theme and pedro1973 for the dark battle theme.
|
||||
Thanks to singularita for creating the scripts to add over 300 additional creature cards.
|
||||
Thanks to Melvin Zhang for implementing the Monte Carlo Tree Search AI.
|
||||
Thanks for your support and have fun!
|
||||
|
||||
Release 1.12 (April 17, 2011)
|
||||
============
|
||||
Release LE 1.13 (April 23, 2011)
|
||||
===============
|
||||
|
||||
- default cube (600 cards)
|
||||
- all cube (900 cards)
|
||||
|
||||
- added "Save replay" to menu, useful for sharing game state when reporting issues
|
||||
- right mouse click on hand zone can now be used as a shortcut for action button
|
||||
|
||||
Release LE 1.12 (April 17, 2011)
|
||||
===============
|
||||
|
||||
- default cube (567 cards)
|
||||
- all cube (888 cards)
|
||||
|
@ -38,7 +47,7 @@ Release 1.12 (April 17, 2011)
|
|||
- added selectable avatar sets in preferences, separate from theme
|
||||
- added unlimited undo support
|
||||
- added "Reset game" in menu, undoing all moves
|
||||
- added M key as additional shortcut for messages
|
||||
- added M key as an additional shortcut for messages
|
||||
|
||||
Release 1.11 (April 11, 2011)
|
||||
============
|
||||
|
@ -195,4 +204,4 @@ Release 1.1 (December 7, 2010)
|
|||
Release 1.0 (November 25, 2010)
|
||||
===========
|
||||
|
||||
- initial release
|
||||
- initial release (450 cards)
|
||||
|
|
|
@ -89,6 +89,13 @@ public class GameController {
|
|||
}
|
||||
}
|
||||
|
||||
public void actionKeyPressed() {
|
||||
|
||||
if (gamePanel.canClickAction()) {
|
||||
actionClicked();
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void actionClicked() {
|
||||
|
||||
undoClicked=false;
|
||||
|
@ -97,6 +104,13 @@ public class GameController {
|
|||
notifyAll();
|
||||
}
|
||||
|
||||
public void undoKeyPressed() {
|
||||
|
||||
if (gamePanel.canClickUndo()) {
|
||||
undoClicked();
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void undoClicked() {
|
||||
|
||||
if (game.hasUndoPoints()) {
|
||||
|
|
|
@ -162,7 +162,7 @@ public class GamePanel extends JPanel {
|
|||
@Override
|
||||
public void actionPerformed(final ActionEvent event) {
|
||||
|
||||
actionKeyPressed();
|
||||
controller.actionKeyPressed();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -173,7 +173,7 @@ public class GamePanel extends JPanel {
|
|||
@Override
|
||||
public void actionPerformed(final ActionEvent event) {
|
||||
|
||||
undoKeyPressed();
|
||||
controller.undoKeyPressed();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -229,20 +229,16 @@ public class GamePanel extends JPanel {
|
|||
thread.start();
|
||||
}
|
||||
|
||||
void actionKeyPressed() {
|
||||
public boolean canClickAction() {
|
||||
|
||||
if (gameTournamentViewer.getGameViewer().isActionEnabled()) {
|
||||
controller.actionClicked();
|
||||
}
|
||||
return gameTournamentViewer.getGameViewer().isActionEnabled();
|
||||
}
|
||||
|
||||
void undoKeyPressed() {
|
||||
|
||||
if (gameTournamentViewer.getGameViewer().isUndoEnabled()) {
|
||||
controller.undoClicked();
|
||||
}
|
||||
public boolean canClickUndo() {
|
||||
|
||||
return gameTournamentViewer.getGameViewer().isUndoEnabled();
|
||||
}
|
||||
|
||||
|
||||
void switchKeyPressed() {
|
||||
|
||||
if (textViewButton.isEnabled()) {
|
||||
|
|
|
@ -58,6 +58,11 @@ public class ImageCardListViewer extends JPanel implements ChoiceViewer {
|
|||
@Override
|
||||
public void mousePressed(final MouseEvent event) {
|
||||
|
||||
if (event.getButton() == MouseEvent.BUTTON3) {
|
||||
controller.actionKeyPressed();
|
||||
return;
|
||||
}
|
||||
|
||||
final int index=getCardIndexAt(event.getX(),event.getY());
|
||||
if (index>=0) {
|
||||
controller.processClick(cardList.get(index));
|
||||
|
|
Loading…
Reference in New Issue