de.jos.game.logic
Class AbstractGameBoard

java.lang.Object
  extended by de.jos.game.logic.AbstractGameBoard
All Implemented Interfaces:
Constants
Direct Known Subclasses:
InfiniteGameBoard, PuzzleGameBoard

public abstract class AbstractGameBoard
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
AbstractGameBoard()
           
 
Method Summary
 ActionContainer getActionContainer()
           
 Bullet[][] getBoard()
           
 Bullet getBullet(int x, int y)
           
 java.util.List<Bullet> getBulletList()
           
 AbstractGameLogic getGameLogic()
           
 Level getLevel()
           
 ResourceContainer getResourceContainer()
           
 void initLevel(Level level)
           
 java.lang.Object[] isMovePossible(AbstractGameLogic.Direction direction, Bullet bullet)
           
 void removeBullet(int x, int y)
           
 void resetGlowAnimation(int ignoreX, int ignoreY)
           
 void setActionContainer(ActionContainer actionContainer)
           
 void setBullet(int x, int y, Bullet bullet)
           
 void setGameLogic(AbstractGameLogic gameLogic)
           
 void setResourceContainer(ResourceContainer resourceContainer)
           
 void updateBoard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGameBoard

public AbstractGameBoard()
Method Detail

updateBoard

public void updateBoard()

initLevel

public void initLevel(Level level)

getBullet

public Bullet getBullet(int x,
                        int y)

setBullet

public void setBullet(int x,
                      int y,
                      Bullet bullet)

removeBullet

public void removeBullet(int x,
                         int y)

isMovePossible

public java.lang.Object[] isMovePossible(AbstractGameLogic.Direction direction,
                                         Bullet bullet)

resetGlowAnimation

public void resetGlowAnimation(int ignoreX,
                               int ignoreY)

getResourceContainer

public ResourceContainer getResourceContainer()

setResourceContainer

public void setResourceContainer(ResourceContainer resourceContainer)

getBulletList

public java.util.List<Bullet> getBulletList()

getBoard

public Bullet[][] getBoard()

getLevel

public Level getLevel()

getActionContainer

public ActionContainer getActionContainer()

setActionContainer

public void setActionContainer(ActionContainer actionContainer)

getGameLogic

public AbstractGameLogic getGameLogic()

setGameLogic

public void setGameLogic(AbstractGameLogic gameLogic)


Copyright © 2008. All Rights Reserved.