Class ArunsArmy

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--ArunsArmy

public class ArunsArmy
extends javax.swing.JApplet

ArunsArmy - A game that requires strategy in order to conquer your enemy!

Author:
Arun Rao
See Also:
Serialized Form

Inner Class Summary
(package private)  class ArunsArmy.AboutListener
          Used to react to user selecting about arun's army
(package private)  class ArunsArmy.HelpListener
          Used to react to user selecting how to play arun's army
 
Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  UnitAction actions
           
static java.awt.Image AIRTRANS_IMG
           
static java.awt.Image BLANK_IMG
           
static java.awt.Image BOMBER_IMG
           
static java.awt.Image DESTROYER_IMG
           
static java.awt.Image HIGHLIGHT_IMG
           
static java.awt.Image HQ1_IMG
           
static java.awt.Image HQ2_IMG
           
static java.awt.Image MISSLE_IMG
           
(package private)  Player player1
           
(package private)  Player player2
           
(package private)  PurchaseUnits purchUnits
           
static java.awt.Image RPG_IMG
           
static SoldierUnit SOLDIER
           
static java.awt.Image SOLDIER_IMG
           
static TankUnit TANK
           
static java.awt.Image TANK_IMG
           
static ArunsArmy THE_GAME
           
(package private)  PlayerViewableCash theCash
           
(package private)  InfoPanel theDirections
           
(package private)  MapBoard theMap
           
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.applet.Applet
serialVersionUID, stub
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
ArunsArmy()
           
 
Method Summary
 void GameSetup()
          This method sets up the game
 MapBoard getMapBoard()
           
 void init()
           
static void main(java.lang.String[] s)
           
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, createRootPaneException, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
, addNotify, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paint, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFocusOwner, setFont, transferFocus, updateCursor, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, 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, 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, registerNatives, wait, wait, wait
 

Field Detail

SOLDIER

public static SoldierUnit SOLDIER

TANK

public static TankUnit TANK

SOLDIER_IMG

public static java.awt.Image SOLDIER_IMG

TANK_IMG

public static java.awt.Image TANK_IMG

RPG_IMG

public static java.awt.Image RPG_IMG

MISSLE_IMG

public static java.awt.Image MISSLE_IMG

AIRTRANS_IMG

public static java.awt.Image AIRTRANS_IMG

BOMBER_IMG

public static java.awt.Image BOMBER_IMG

DESTROYER_IMG

public static java.awt.Image DESTROYER_IMG

BLANK_IMG

public static java.awt.Image BLANK_IMG

HIGHLIGHT_IMG

public static java.awt.Image HIGHLIGHT_IMG

HQ1_IMG

public static java.awt.Image HQ1_IMG

HQ2_IMG

public static java.awt.Image HQ2_IMG

THE_GAME

public static ArunsArmy THE_GAME

theCash

PlayerViewableCash theCash

actions

UnitAction actions

purchUnits

PurchaseUnits purchUnits

player1

Player player1

player2

Player player2

theMap

MapBoard theMap

theDirections

InfoPanel theDirections
Constructor Detail

ArunsArmy

public ArunsArmy()
Method Detail

main

public static void main(java.lang.String[] s)

init

public void init()
Overrides:
init in class java.applet.Applet

GameSetup

public void GameSetup()
This method sets up the game

getMapBoard

public MapBoard getMapBoard()