|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--CLodeRunner
LodeRunner Game
Field Summary | |
protected java.awt.Image |
BackBuffer
|
protected java.awt.Graphics |
BackBufferGC
|
protected int |
CellHeight
|
protected int |
CellWidth
|
protected boolean |
game_over
|
protected int |
game_over_counter
|
protected int |
height
|
protected boolean |
ImageLoaded
|
protected java.awt.Image[] |
images
|
protected java.net.URL |
level_base
|
protected int |
level_num
|
protected boolean |
new_level
|
protected int |
new_level_counter
|
protected int |
width
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
CLodeRunner()
|
Method Summary | |
void |
destroy()
Applet destroy method |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int w,
int h)
Image update method (here we wait while all images are loaded) |
void |
init()
Applet initialization |
void |
keyPressed(java.awt.event.KeyEvent key_event)
Called, when key in applet is pressed |
void |
keyReleased(java.awt.event.KeyEvent key_event)
Called, when key in applet is released |
void |
keyTyped(java.awt.event.KeyEvent key_event)
Called, when key in applet is typed |
void |
paint(java.awt.Graphics g)
Draw method |
void |
ResetAllMovements()
Reset all hero movements |
void |
run()
Called, when thread is running |
void |
start()
Called, when applet is started |
void |
stop()
Called, when applet stopped |
void |
update(java.awt.Graphics g)
Applet update method |
Methods inherited from class java.applet.Applet |
getAppletContext,
getAppletInfo,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int CellWidth
protected int CellHeight
protected int width
protected int height
protected java.awt.Image[] images
protected java.awt.Image BackBuffer
protected java.awt.Graphics BackBufferGC
protected boolean ImageLoaded
protected java.net.URL level_base
protected int level_num
protected boolean new_level
protected int new_level_counter
protected boolean game_over
protected int game_over_counter
Constructor Detail |
public CLodeRunner()
Method Detail |
public void init()
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int w, int h)
public void destroy()
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public void start()
public void stop()
public void run()
public void keyPressed(java.awt.event.KeyEvent key_event)
public void keyReleased(java.awt.event.KeyEvent key_event)
public void keyTyped(java.awt.event.KeyEvent key_event)
public void ResetAllMovements()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |