com.croftsoft.apps.infravision
Class Infravision

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by com.croftsoft.apps.infravision.Infravision
All Implemented Interfaces:
Commissionable, Destroyable, Initializable, Lifecycle, Resumable, Startable, Stoppable, ImageObserver, MenuContainer, Serializable, Runnable, Accessible

public class Infravision
extends Applet
implements Lifecycle, Runnable

Goblins hunt kobolds in the dark using infravision.

Since:
1996-08-23
Version:
2002-03-02
See Also:
Serialized Form
Author:
David Wallace Croft

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Infravision()
           
 
Method Summary
 void destroy()
           
 Point goblin_move_direction(int index_goblin)
           
 void goblin_move(int index_goblin)
           
 void goblins_init()
           
 void goblins_move()
           
 void init_walls()
           
 void init()
           
 void kill_goblin(Point goblin_Point)
           
 void kill_kobold(Point kobold_Point)
           
 Point kobold_move_direction(int index_kobold)
           
 void kobold_move(int index_kobold)
           
 void kobolds_init()
           
 void kobolds_move()
           
 boolean mouseDown(Event e, int x, int y)
           
 void paint(Graphics g)
           
 void plot_goblins(Rectangle r, Graphics g)
           
 void plot_kobolds(Rectangle r, Graphics g)
           
 void plot_wall(Rectangle r, Graphics g)
           
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.applet.Applet
getAccessibleContext, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Infravision

public Infravision()
Method Detail

init

public void init()
Specified by:
init in interface Initializable
Overrides:
init in class Applet

start

public void start()
Specified by:
start in interface Startable
Overrides:
start in class Applet

stop

public void stop()
Specified by:
stop in interface Stoppable
Overrides:
stop in class Applet

destroy

public void destroy()
Specified by:
destroy in interface Destroyable
Overrides:
destroy in class Applet

run

public void run()
Specified by:
run in interface Runnable

goblin_move_direction

public Point goblin_move_direction(int index_goblin)

goblin_move

public void goblin_move(int index_goblin)

goblins_move

public void goblins_move()

kobold_move_direction

public Point kobold_move_direction(int index_kobold)

kobold_move

public void kobold_move(int index_kobold)

kobolds_move

public void kobolds_move()

kill_goblin

public void kill_goblin(Point goblin_Point)

kill_kobold

public void kill_kobold(Point kobold_Point)

kobolds_init

public void kobolds_init()

goblins_init

public void goblins_init()

init_walls

public void init_walls()

mouseDown

public boolean mouseDown(Event e,
                         int x,
                         int y)
Overrides:
mouseDown in class Component

paint

public void paint(Graphics g)
Overrides:
paint in class Container

plot_goblins

public void plot_goblins(Rectangle r,
                         Graphics g)

plot_kobolds

public void plot_kobolds(Rectangle r,
                         Graphics g)

plot_wall

public void plot_wall(Rectangle r,
                      Graphics g)

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)