BattleZone
Class BattleZone

mam.agent.pluginAgentRes.Drawer
  |
  +--BattleZone.BattleZone

public class BattleZone
extends Drawer


Inner Class Summary
 (package private) classBattleZone.Environment
           
 (package private) classBattleZone.GLDebris
           
 (package private) classBattleZone.GLExplosion
           

Field Summary
 booleanbigDeath
           
 booleanbonus1
           
 booleanbonus2
           
 ProxyGLBulletbullet
           
 (package private) final static StringBUMP
           
 booleanbuz
           
 booleanbuzDone
           
 protected ProxyGLPointcamera
           
 floatcameraBase
           
 booleancheckBullet
           
 (package private) intclk
           
 (package private) intclk2
           
 (package private) intclkLimit
           
 doublecolor
           
 booleandoneMA1
           
 (package private) booleandown
           
 StringexpColor
           
 GLDebrisexpEffect
           
 ProxyGLPointexpLoc
           
 GLExplosionexps
           
 booleanfreezDown
           
 booleanfreezLeft
           
 booleanfreezRight
           
 booleanfreezUp
           
 floatfrq
           
 booleangameOver
           
 booleangamePause
           
 protected GLUTFuncglut
           
 GLHeatSeekGroupheatseekers
           
 booleanhelpMenu
           
 (package private) booleanhitPause
           
 booleaninitSeeker
           
 (package private) final static StringKA_HIT
           
 GLKnowAgentsknowAgents
           
 protected longlast
           
 StringlastMoveOne
           
 StringlastMoveTwo
           
 (package private) booleanleft
           
 intlives
           
 private Collectionm_listeners
           
 booleanmasterFreez
           
 (package private) booleanmenu
           
 (package private) final static StringMONITOR_DEATH
           
 (package private) final static StringMONITOR_HIT
           
 GLMonitorAgentsmonitorAgents
           
 (package private) intmooDeathC
           
 booleanmotionBlocked
           
 private intmousex
           
 private intmousey
           
 (package private) intnewScore
           
 protected longnow
           
 (package private) GLKnowInfonowInfo
           
 (package private) intoldScore
           
 (package private) booleanphase1
           
 (package private) booleanphase2
           
 (package private) booleanphase3
           
 ProxyGLPointpreviousCamera
           
 protected intprintFps
           
 floatr
           
 private Randomrand
           
 (package private) booleanright
           
 floatrSeeker
           
 floats
           
 intscore
           
 (package private) booleanscoreChecked
           
 (package private) intscoreDif
           
 GLHeatSeekseeker
           
 ProxyGLPointseekerBase
           
 booleanseekerDisable
           
 ProxyGLPointseekerLoc
           
 floatseekerSpeed
           
 booleansendSeeker
           
 (package private) final static StringSHIP_DEATH
           
 (package private) final static StringSHIP_FIRE
           
 (package private) final static StringSHIP_SEEKER
           
 longstartTime
           
 longstarttime
           
 booleanstopMovingAhead
           
 booleanstopMovingBack
           
 (package private) final static StringTANK_BONUS
           
 (package private) inttankBonus
           
 ProxyGLPointtemp
           
 (package private) floattempSeekerX
           
 (package private) floattempSeekerZ
           
 (package private) Stringtext
           
 (package private) booleanthereIsExp
           
 booleanthereIsSeekerExp
           
 floattSeeker
           
 (package private) booleanup
           
 booleanupdateSeeker
           
 (package private) booleanview
           
 (package private) intwBC1
           
 (package private) intwBC10
           
 (package private) intwBC11
           
 (package private) intwBC12
           
 (package private) intwBC2
           
 (package private) intwBC3
           
 (package private) intwBC4
           
 (package private) intwBC5
           
 (package private) intwBC6
           
 (package private) intwBC7
           
 (package private) intwBC8
           
 (package private) intwBC9
           
 (package private) booleanwBinit
           
 (package private) booleanwBP1
           
 (package private) booleanwBP10
           
 (package private) booleanwBP11
           
 (package private) booleanwBP2
           
 (package private) booleanwBP3
           
 (package private) booleanwBP4
           
 (package private) booleanwBP5
           
 (package private) booleanwBP6
           
 (package private) booleanwBP7
           
 (package private) booleanwBP8
           
 (package private) booleanwBP9
           
 (package private) Environmentworld
           
 (package private) booleanyouCanUnPause
           

Fields inherited from class mam.agent.pluginAgentRes.Drawer
canvas, gl, glu, height, width

Constructor Summary
BattleZone()
           

Method Summary
 floatabs(float num)
           
 voidaddKnowAgent(int totalAgents, MamId mamid, String url)
           
 voidaddMonitorAgent(String url)
           
 voidaddSearch(String requestor)
           
 voidadvSeeker()
           
 StringbulletBump()
           
 voidbumbBaya()
           
 voidcheckBonus()
           
 voidcheckBumpWithSeeker()
           
 voidcheckKeys()
           
 voidcheckScore()
           
 booleancheckSeekerBumpWithKAS()
           
 voidconstruct(int w, int h, PluginGLCanvas cnvs)
           
 voiddisplay()
           
 voiddoUpdateSeeker()
           
 voiddrawBase()
           
 voiddrawCap()
           
 voiddrawFace()
           
 voiddrawMouth()
           
 voiddrawSeeker()
           
 voidfindPlayerSituation(float myPrevLocX, float myPrevLocZ, float objectX, float objectZ)
           
 voidfindPlayerSituationWithLittleMA(float myPrevLocX, float myPrevLocZ, float littleMALocX, float littleMALocZ)
           
 voidfindPlayerSituationWithMA(float myPrevLocX, float myPrevLocZ, float MALocX, float MALocZ)
           
 private floatgetRandom(boolean signed, float begin, float end)
           
 floatgetRSeeker(ProxyGLPoint start, ProxyGLPoint end)
           
 voidinit()
           
 voidinitSeeker()
           
 voidkeyPressed(KeyEvent e)
           
 voidkeyReleased(KeyEvent e)
           
 voidkeyTyped(KeyEvent e)
           
 voidlittleTank()
           
 booleanLockTarget()
           
 voidmonitorUpdate(String updatedurl)
           
 voidmooDeath()
           
 voidout(boolean temp, String str)
           
 protected voidplayTraitedEventSound(String eventSoundName)
           
 voidpreInit()
          void preInit() Called just BEFORE the GL-Context is created.
 voidremoveKnowAgent(MamId mamid)
           
 voidremoveMonitorAgent(String url)
           
 voidreshape(int width, int height)
           
 voidseekerReset()
           
 voidsetUserView()
           
 voidshake()
           
 voidshowFPS()
           
 voidunFreez()
           
 voidwindowBreak()
           
 voidwindowBreakInit()
           
 voidwindowBreakPhase1()
           
 voidwindowBreakPhase10()
           
 voidwindowBreakPhase11()
           
 voidwindowBreakPhase2()
           
 voidwindowBreakPhase3()
           
 voidwindowBreakPhase4()
           
 voidwindowBreakPhase5()
           
 voidwindowBreakPhase6()
           
 voidwindowBreakPhase7()
           
 voidwindowBreakPhase8()
           
 voidwindowBreakPhase9()
           

Methods inherited from class mam.agent.pluginAgentRes.Drawer
addListener, fireEvent

Field Detail

bigDeath

public boolean bigDeath

bonus1

public boolean bonus1

bonus2

public boolean bonus2

bullet

public ProxyGLBullet bullet

BUMP

final static String BUMP

buz

public boolean buz

buzDone

public boolean buzDone

camera

protected ProxyGLPoint camera

cameraBase

public float cameraBase

checkBullet

public boolean checkBullet

clk

int clk

clk2

int clk2

clkLimit

int clkLimit

color

public double color

doneMA1

public boolean doneMA1

down

boolean down

expColor

public String expColor

expEffect

public GLDebris expEffect

expLoc

public ProxyGLPoint expLoc

exps

public GLExplosion exps

freezDown

public boolean freezDown

freezLeft

public boolean freezLeft

freezRight

public boolean freezRight

freezUp

public boolean freezUp

frq

public float frq

gameOver

public boolean gameOver

gamePause

public boolean gamePause

glut

protected GLUTFunc glut

heatseekers

public GLHeatSeekGroup heatseekers

helpMenu

public boolean helpMenu

hitPause

boolean hitPause

initSeeker

public boolean initSeeker

KA_HIT

final static String KA_HIT

knowAgents

public GLKnowAgents knowAgents

last

protected long last

lastMoveOne

public String lastMoveOne

lastMoveTwo

public String lastMoveTwo

left

boolean left

lives

public int lives

m_listeners

private Collection m_listeners

masterFreez

public boolean masterFreez

menu

boolean menu

MONITOR_DEATH

final static String MONITOR_DEATH

MONITOR_HIT

final static String MONITOR_HIT

monitorAgents

public GLMonitorAgents monitorAgents

mooDeathC

int mooDeathC

motionBlocked

public boolean motionBlocked

mousex

private int mousex

mousey

private int mousey

newScore

int newScore

now

protected long now

nowInfo

GLKnowInfo nowInfo

oldScore

int oldScore

phase1

boolean phase1

phase2

boolean phase2

phase3

boolean phase3

previousCamera

public ProxyGLPoint previousCamera

printFps

protected int printFps

r

public float r

rand

private Random rand

right

boolean right

rSeeker

public float rSeeker

s

public float s

score

public int score

scoreChecked

boolean scoreChecked

scoreDif

int scoreDif

seeker

public GLHeatSeek seeker

seekerBase

public ProxyGLPoint seekerBase

seekerDisable

public boolean seekerDisable

seekerLoc

public ProxyGLPoint seekerLoc

seekerSpeed

public float seekerSpeed

sendSeeker

public boolean sendSeeker

SHIP_DEATH

final static String SHIP_DEATH

SHIP_FIRE

final static String SHIP_FIRE

SHIP_SEEKER

final static String SHIP_SEEKER

startTime

public long startTime

starttime

public long starttime

stopMovingAhead

public boolean stopMovingAhead

stopMovingBack

public boolean stopMovingBack

TANK_BONUS

final static String TANK_BONUS

tankBonus

int tankBonus

temp

public ProxyGLPoint temp

tempSeekerX

float tempSeekerX

tempSeekerZ

float tempSeekerZ

text

String text

thereIsExp

boolean thereIsExp

thereIsSeekerExp

public boolean thereIsSeekerExp

tSeeker

public float tSeeker

up

boolean up

updateSeeker

public boolean updateSeeker

view

boolean view

wBC1

int wBC1

wBC10

int wBC10

wBC11

int wBC11

wBC12

int wBC12

wBC2

int wBC2

wBC3

int wBC3

wBC4

int wBC4

wBC5

int wBC5

wBC6

int wBC6

wBC7

int wBC7

wBC8

int wBC8

wBC9

int wBC9

wBinit

boolean wBinit

wBP1

boolean wBP1

wBP10

boolean wBP10

wBP11

boolean wBP11

wBP2

boolean wBP2

wBP3

boolean wBP3

wBP4

boolean wBP4

wBP5

boolean wBP5

wBP6

boolean wBP6

wBP7

boolean wBP7

wBP8

boolean wBP8

wBP9

boolean wBP9

world

Environment world

youCanUnPause

boolean youCanUnPause
Constructor Detail

BattleZone

public BattleZone()
Method Detail

abs

public float abs(float num)

addKnowAgent

public void addKnowAgent(int totalAgents, MamId mamid, String url)

addMonitorAgent

public void addMonitorAgent(String url)

addSearch

public void addSearch(String requestor)

advSeeker

public void advSeeker()

bulletBump

public String bulletBump()

bumbBaya

public void bumbBaya()

checkBonus

public void checkBonus()

checkBumpWithSeeker

public void checkBumpWithSeeker()

checkKeys

public void checkKeys()

checkScore

public void checkScore()

checkSeekerBumpWithKAS

public boolean checkSeekerBumpWithKAS()

construct

public void construct(int w, int h, PluginGLCanvas cnvs)

display

public void display()

doUpdateSeeker

public void doUpdateSeeker()

drawBase

public void drawBase()

drawCap

public void drawCap()

drawFace

public void drawFace()

drawMouth

public void drawMouth()

drawSeeker

public void drawSeeker()

findPlayerSituation

public void findPlayerSituation(float myPrevLocX, float myPrevLocZ, float objectX, float objectZ)

findPlayerSituationWithLittleMA

public void findPlayerSituationWithLittleMA(float myPrevLocX, float myPrevLocZ, float littleMALocX, float littleMALocZ)

findPlayerSituationWithMA

public void findPlayerSituationWithMA(float myPrevLocX, float myPrevLocZ, float MALocX, float MALocZ)

getRandom

private float getRandom(boolean signed, float begin, float end)

getRSeeker

public float getRSeeker(ProxyGLPoint start, ProxyGLPoint end)

init

public void init()

initSeeker

public void initSeeker()

keyPressed

public void keyPressed(KeyEvent e)

keyReleased

public void keyReleased(KeyEvent e)

keyTyped

public void keyTyped(KeyEvent e)

littleTank

public void littleTank()

LockTarget

public boolean LockTarget()

monitorUpdate

public void monitorUpdate(String updatedurl)

mooDeath

public void mooDeath()

out

public void out(boolean temp, String str)

playTraitedEventSound

protected void playTraitedEventSound(String eventSoundName)

preInit

public void preInit()
void preInit() Called just BEFORE the GL-Context is created.

removeKnowAgent

public void removeKnowAgent(MamId mamid)

removeMonitorAgent

public void removeMonitorAgent(String url)

reshape

public void reshape(int width, int height)

seekerReset

public void seekerReset()

setUserView

public void setUserView()

shake

public void shake()

showFPS

public void showFPS()

unFreez

public void unFreez()

windowBreak

public void windowBreak()

windowBreakInit

public void windowBreakInit()

windowBreakPhase1

public void windowBreakPhase1()

windowBreakPhase10

public void windowBreakPhase10()

windowBreakPhase11

public void windowBreakPhase11()

windowBreakPhase2

public void windowBreakPhase2()

windowBreakPhase3

public void windowBreakPhase3()

windowBreakPhase4

public void windowBreakPhase4()

windowBreakPhase5

public void windowBreakPhase5()

windowBreakPhase6

public void windowBreakPhase6()

windowBreakPhase7

public void windowBreakPhase7()

windowBreakPhase8

public void windowBreakPhase8()

windowBreakPhase9

public void windowBreakPhase9()