de.jos.game.logic
Class BoardUtils

java.lang.Object
  extended by de.jos.game.logic.BoardUtils
All Implemented Interfaces:
Constants

public class BoardUtils
extends java.lang.Object
implements Constants


Field Summary
 
Fields inherited from interface de.jos.game.Constants
BOARD_WIDTH_X, BOARD_WIDTH_Y, BOTTOM_BORDER, COLOR_BLUE, COLOR_CYAN, COLOR_GREEN, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_VIOLET, COLOR_YELLOW, DEFAULT_BACKGROUND_COLOR, GAME_TIME_SECONDS, GAME_TIME_SECONDS_WARNING, LEFT_BORDER, LEVEL_ADVANCEMENT_HEIGHT, LEVEL_ADVANCEMENT_WIDTH, LEVEL_ADVANCEMENT_X_OFFSET, LEVEL_ADVANCEMENT_Y_TARGET, LEVEL_SOLVE_SCORE_X, LEVEL_SOLVE_SCORE_Y, MODE_INFINITE, MODE_PUZZLE, MOUSE_STATE_NOT_PRESSED, MOUSE_STATE_PRESSED, MOVE_DIFF, MOVING_FACTOR, PROGRESSBAR_BORDER, PROGRESSBAR_HEIGHT, PROGRESSBAR_WINDOW_BORDERX, PROGRESSBAR_WINDOW_BORDERY, PUZZLE_SPRITE_WIDTH_X, PUZZLE_SPRITE_WIDTH_Y, RIGHT_BORDER, SPRITE_HEIGHT, SPRITE_WIDTH, TOP_BORDER, TRANSPARENCY_INCREMENT, TRANSPARENCY_INIT, WINDOW_HEIGHT, WINDOW_WIDTH, X_OFFSET, Y_OFFSET
 
Constructor Summary
BoardUtils()
           
 
Method Summary
static java.util.Collection<Bullet> getAllBoardBullets(AbstractGameBoard gameBoard)
           
static java.util.Collection<Bullet> getBoardBullets(AbstractGameBoard gameBoard)
           
static boolean isFutureMovePossible(AbstractGameBoard gameBoard)
          Ermittelt, ob auf dem Spielfeld ueberhaupt noch Zuege moeglich sind.
static boolean isWithinSelectableBounds(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardUtils

public BoardUtils()
Method Detail

isWithinSelectableBounds

public static final boolean isWithinSelectableBounds(int x,
                                                     int y)

getAllBoardBullets

public static final java.util.Collection<Bullet> getAllBoardBullets(AbstractGameBoard gameBoard)

getBoardBullets

public static final java.util.Collection<Bullet> getBoardBullets(AbstractGameBoard gameBoard)

isFutureMovePossible

public static boolean isFutureMovePossible(AbstractGameBoard gameBoard)
Ermittelt, ob auf dem Spielfeld ueberhaupt noch Zuege moeglich sind.

Parameters:
gameBoard - Das Spielfeld mit den Kugeln
Returns:
true, wenn weitere Zuege moeglich sind.


Copyright © 2008. All Rights Reserved.