Class Field

java.lang.Object
   |
   +----Field

class Field
extends Object
Sorry, not documented yet.

Source


Variable Index

 o bojng
 o freeBlocks
 o height
Number of blocks (0,0)=links oben
 o itemCnt
 o items
 o rand
 o timedItems
 o urlBase
 o width
Number of blocks (0,0)=links oben

Constructor Index

 o Field(BojngInterface, URL, Canvas)

Method Index

 o clear()
 o createBlock(char)
 o explodeAllBlocks()
 o getFreeBlock()
 o getItem(int, int)
 o loadLevel(int)
 o placeItem(int, int, Item)
setzt + initialisiert ein Item
 o placeRandom(int)
 o removeItem(int, int)
 o tick()

Variables

 o width
 final int width
Number of blocks (0,0)=links oben

 o height
 final int height
Number of blocks (0,0)=links oben

 o items
 Item items[][]
 o freeBlocks
 Vector freeBlocks
 o timedItems
 Vector timedItems
 o itemCnt
 int itemCnt
 o bojng
 BojngInterface bojng
 o urlBase
 URL urlBase
 o rand
 Random rand

Constructors

 o Field
 Field(BojngInterface bojng,
       URL urlBase,
       Canvas canvas)

Methods

 o clear
 synchronized void clear()
 o loadLevel
 synchronized String loadLevel(int n)
 o createBlock
 Item createBlock(char chr)
 o placeItem
 synchronized void placeItem(int x,
                             int y,
                             Item i)
setzt + initialisiert ein Item

 o removeItem
 public synchronized boolean removeItem(int x,
                                        int y)
 o explodeAllBlocks
 synchronized void explodeAllBlocks()
 o getItem
 synchronized Item getItem(int x,
                           int y)
 o getFreeBlock
 synchronized Point getFreeBlock()
 o placeRandom
 synchronized void placeRandom(int ms)
 o tick
 synchronized void tick()