A B C D E F G H I J K L M N O P Q R S T U V W X

A

acceleration - Variable in class group1.model.gameobject.GameObj
The acceleration.
actionPerformed(ActionEvent) - Method in class group1.view.View
This method is called by the timer.
addFilm(List<File>, GameObjState) - Method in class group1.model.gameobject.PictureList
Adds a list of pictures to the PictureList
addObject(GameObj, GameObj) - Method in class group1.model.Environment
Add an object, with the position defined as being the position of the object that "created" or "threw" it.
addObject(GameObj, double, double) - Method in class group1.model.Environment
Add object, with the position explicitly defined by the caller.
addObject(GameObj) - Method in class group1.model.Environment
Add an object.
addObject(GameObj) - Method in class group1.model.EnvironmentGridSpace
 
addRegion(double, double, double, double) - Method in class group1.model.gameobject.GameObj
Add a region to this object.
addRegion(ObjRegion) - Method in class group1.model.gameobject.GameObj
Add a region to this object.
ATTACK_PROBABILITY_DENOMINATOR - Static variable in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will attack at a particular time step is ATTACK_PROBABILITY_NUMERATOR out of ATTACK_PROBABILITY_DENOMINATOR.
ATTACK_PROBABILITY_NUMERATOR - Static variable in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will attack at a particular time step is ATTACK_PROBABILITY_NUMERATOR out of ATTACK_PROBABILITY_DENOMINATOR.
Audio - Enum in group1.view.audio
The enumerated type for different audio files.
AudioCache - Class in group1.view.audio
A class used to cache a single audio file.
AudioCache(Audio) - Constructor for class group1.view.audio.AudioCache
Constructor.
AudioChannel - Class in group1.view.audio
A thread used to play audio.
AudioChannel(AudioFormat) - Constructor for class group1.view.audio.AudioChannel
Constructor.
AudioFacade - Class in group1.view.audio
A facade class for the audio system.
AudioFacade() - Constructor for class group1.view.audio.AudioFacade
Constructor.
AudioType - Enum in group1.view.audio
An enum type to differentiate between large, loopable music and one-time, cached SFX.

B

BOTTOM_SIDE - Static variable in class group1.model.objectregion.ObjRegion
Specifies that this region is on the bottom side of the game object.
BusyAudioChannelException - Exception in group1.view.audio
This exception is thrown if someone tries to use an audio channel that's busy.
BusyAudioChannelException() - Constructor for exception group1.view.audio.BusyAudioChannelException
Constructor.
BusyAudioChannelException(String) - Constructor for exception group1.view.audio.BusyAudioChannelException
Constructor with message.
BuyMenuEvent - Class in group1.model.gameevent
 
BuyMenuEvent(int, boolean[]) - Constructor for class group1.model.gameevent.BuyMenuEvent
 
BuyMenuListener - Class in group1.view.modelListeners
 
BuyMenuListener(View) - Constructor for class group1.view.modelListeners.BuyMenuListener
 

C

CHANGE_WEAPON_PROBABILITY_DENOMINATOR - Static variable in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will change weapons at a particular time step is CHANGE_WEAPON_PROBABILITY_NUMERATOR out of CHANGE_WEAPON_PROBABILITY_DENOMINATOR.
CHANGE_WEAPON_PROBABILITY_NUMERATOR - Static variable in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will change weapons at a particular time step is CHANGE_WEAPON_PROBABILITY_NUMERATOR out of CHANGE_WEAPON_PROBABILITY_DENOMINATOR.
changeWeapon(char) - Method in class group1.model.gameobject.Jeff
Change the weapon to the specified one.
changeWeapon(char) - Method in class group1.model.gameobject.LivingObj
Change the weapon to the specified one.
chartodigit(char) - Static method in class group1.model.MyUtilities
 
charToGameObjType(char) - Static method in enum group1.model.gameobject.GameObjType
Converts a char to the associated GameObjType.
contactDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to direct contact damage.
ContinueMenuEvent - Class in group1.model.gameevent
 
ContinueMenuEvent(int) - Constructor for class group1.model.gameevent.ContinueMenuEvent
 
ContinueMenuListener - Class in group1.view.modelListeners
 
ContinueMenuListener(View) - Constructor for class group1.view.modelListeners.ContinueMenuListener
 
Controller - Class in group1.control
A class for a generic game controller.
Controller() - Constructor for class group1.control.Controller
Default constructor.
createGameObj(char, double, double) - Method in class group1.model.gameobject.GameObjFactory
Given an alphabetic type code, construct the corresponding type of game object.
curr_hp - Variable in class group1.model.gameobject.LivingObj
The current hit points.

D

damageMyGameObj(double) - Method in class group1.model.objectregion.ObjRegion
Defines what happens after this ObjRegion receives damage.
DEFAULT_ATTACK_POWER - Static variable in class group1.model.gameobject.enemy.Enemy
The default attack power.
DEFAULT_PROJECTILE_SPEED - Static variable in class group1.model.gameobject.enemy.Enemy
The default speed of projectiles created by this Enemy.
DEFAULT_WALK_SPEED - Static variable in class group1.model.gameobject.enemy.Enemy
The default walk speed.
die() - Method in class group1.model.gameobject.LivingObj
An overridable method that defines exactly what happens to a LivingObj when it dies.
digittochar(int) - Static method in class group1.model.MyUtilities
 
Direction - Enum in group1.model.gameobject
The enumerated type for direction left or right.
doEvent(GameEvent) - Method in class group1.model.ModelListener
 
doEvent(BuyMenuEvent) - Method in class group1.view.modelListeners.BuyMenuListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.ContinueMenuListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.EndOfLevelListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.InGameListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.InstructionsListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.JeffDiesListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.LoadListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.MainMenuListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.NewGameListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.PauseMenuListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.SaveListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.StartOfLevelListener
 
doEvent(GameEvent) - Method in class group1.view.modelListeners.WeaponSwitchMenuListener
 

E

EndOfLevelEvent - Class in group1.model.gameevent
 
EndOfLevelEvent() - Constructor for class group1.model.gameevent.EndOfLevelEvent
 
EndOfLevelListener - Class in group1.view.modelListeners
 
EndOfLevelListener(View) - Constructor for class group1.view.modelListeners.EndOfLevelListener
 
Enemy - Class in group1.model.gameobject.enemy
Enemy is a living enemy in the game.
Enemy(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.Enemy
Constructor.
Enemy() - Constructor for class group1.model.gameobject.enemy.Enemy
Default constructor.
ENEMY_TEAM - Static variable in class group1.model.gameobject.GameObj
For objects that cause damage to Jeff but not to enemies.
Environment - Class in group1.model
An environment, or a level, that contains a list of game objects.
Environment() - Constructor for class group1.model.Environment
Default constructor.
Environment(Jeff, String, PictureList[]) - Constructor for class group1.model.Environment
Constructor.
EnvironmentBoundary - Class in group1.model.gameobject.terrain
This is a special Terrain object: the invisible wall on both sides of the Environment.
EnvironmentBoundary(double, double) - Constructor for class group1.model.gameobject.terrain.EnvironmentBoundary
 
EnvironmentGridSpace - Class in group1.model
A space on the Environment grid.
EnvironmentGridSpace() - Constructor for class group1.model.EnvironmentGridSpace
 
EnvironmentGridSpace(double, double, double) - Constructor for class group1.model.EnvironmentGridSpace
 
EnvironmentList - Enum in group1.model
 
EnvironmentTest - Class in group1.tests
Test file for Environment class.
EnvironmentTest() - Constructor for class group1.tests.EnvironmentTest
 
EnvironmentTester - Class in group1.model
Run this class to see a simple environment in action! (Wow, that sounded like I was selling something...) Okay, so actually, this class is INCREDIBLY sloppy, and I even changed the Environment class temporarily to make it work.
EnvironmentTester() - Constructor for class group1.model.EnvironmentTester
 
EnvironmentTester.EnvPanel - Class in group1.model
 
EnvironmentTester.EnvPanel(Environment, Jeff) - Constructor for class group1.model.EnvironmentTester.EnvPanel
 
EnvironmentTester.EnvPanel.ObjectPanel - Class in group1.model
 
EnvironmentTester.EnvPanel.ObjectPanel(GameObj) - Constructor for class group1.model.EnvironmentTester.EnvPanel.ObjectPanel
 
equals(Object) - Method in class group1.model.gameobject.GameObj
Whether or not this GameObj and another Object are considered equal.

F

fillHP() - Method in class group1.model.gameobject.Jeff
Fill Jeff's HP.
findObjRegion(int) - Method in class group1.model.gameobject.projectile.Projectile
Finds an occurrence of an ObjRegion for this object that is on the specified side.
Fireball - Class in group1.model.gameobject.projectile
 
Fireball() - Constructor for class group1.model.gameobject.projectile.Fireball
 
fireDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to fire damage.

G

Game - Class in group1.model
 
Game() - Constructor for class group1.model.Game
The game constructor.
GameEvent - Class in group1.model.gameevent
 
GameEvent() - Constructor for class group1.model.gameevent.GameEvent
 
GameObj - Class in group1.model.gameobject
A generic, abstract object in the game.
GameObj() - Constructor for class group1.model.gameobject.GameObj
Default constructor.
GameObj(double, double, boolean, PictureList) - Constructor for class group1.model.gameobject.GameObj
Constructor, with position defaulted to (0, 0).
GameObj(double, double, double, double, boolean, PictureList) - Constructor for class group1.model.gameobject.GameObj
Constructor.
GameObjFactory - Class in group1.model.gameobject
A factory class to make a GameObj.
GameObjState - Enum in group1.model.gameobject
GameObjStates is an enum that contains all of the gameObj States
GameObjType - Enum in group1.model.gameobject
GameObjType is an enum that contains all the different type of gameObj
GamePanel - Class in group1.view
 
GamePanel() - Constructor for class group1.view.GamePanel
The default constructor.
GameTest - Class in group1
 
GameTest() - Constructor for class group1.GameTest
 
getAcceleration() - Method in class group1.model.gameobject.GameObj
Get the acceleration.
getAccelerationX() - Method in class group1.model.gameobject.GameObj
Get the x-component of the acceleration.
getAccelerationY() - Method in class group1.model.gameobject.GameObj
Get the y-component of the acceleration.
getAttackPower() - Method in class group1.model.gameobject.projectile.Projectile
Returns the attack power of the Projectile, which is the amount of damage that it gives to a GameObj that it hits.
getAudioData() - Method in class group1.view.audio.AudioCache
A method to directly return the byte array of audio data.
getAudioInputStream() - Method in class group1.view.audio.AudioCache
A method to get an AudioInputStream to play the audio data.
getBottomObjRegion() - Method in class group1.model.gameobject.projectile.Projectile
Returns the ObjRegion on the bottom side of the Projectile that gives damage.
getCurrentWeapon() - Method in class group1.model.gameobject.LivingObj
Returns the letter code for the current weapon, or ' ' if not using a weapon right now.
getCurrHP() - Method in class group1.model.gameobject.LivingObj
Get the current hit points.
getDamageType() - Method in class group1.model.gameobject.projectile.Fireball
Returns a letter code indicating the type of damage that this Projectile gives.
getDamageType() - Method in class group1.model.gameobject.projectile.Katana
Returns a letter code indicating the type of damage that this Projectile gives.
getDamageType() - Method in class group1.model.gameobject.projectile.Laser
Returns a letter code indicating the type of damage that this Projectile gives.
getDamageType() - Method in class group1.model.gameobject.projectile.Projectile
Returns a letter code indicating the type of damage that this Projectile gives.
getDamageType() - Method in class group1.model.gameobject.projectile.Tomahawk
Returns a letter code indicating the type of damage that this Projectile gives.
getDirection() - Method in class group1.model.gameobject.projectile.Projectile
Returns the horizontal direction of the Projectile.
getFilename() - Method in enum group1.view.audio.Audio
Get the file name.
getFilm(GameObjState) - Method in class group1.model.gameobject.GameObj
Grabs the Film requested based on the object's current State
getFilm() - Method in class group1.model.gameobject.GameObj
Grabs the Film requested based on the object's current State
getFilm(GameObjState) - Method in class group1.model.gameobject.PictureList
Accesses the film for a given state.
getFormat() - Method in class group1.view.audio.AudioCache
Get the associated audio format.
getGameObj() - Method in class group1.view.Sprite
Accessor for the GameObj.
getGameObjs() - Method in class group1.model.gameevent.InGameEvent
 
getGravity() - Method in class group1.model.Environment
Get the gravity from the environment.
getGroundVelocity(GameObj) - Method in class group1.model.Environment
Check whether or not an object is on ground that it can walk on, AND return the velocity of the ground if it's on ground.
getHeight() - Method in class group1.model.Environment
Return the "true" height of the Environment.
getHeight() - Method in class group1.model.gameobject.GameObj
Get the height of the object.
getID() - Method in class group1.model.gameobject.GameObj
Get the ID.
getInstance(PictureList[]) - Static method in class group1.model.gameobject.GameObjFactory
Get an instance of this class.
getJeff() - Method in class group1.model.Game
Returns Jeff to the master class
getJeffsHP() - Method in class group1.model.gameevent.InGameEvent
 
getJeffsPosition() - Method in class group1.model.Environment
Get Jeff's position.
getJeffsPosition() - Method in class group1.model.gameevent.InGameEvent
 
getJeffsScore() - Method in class group1.model.gameevent.InGameEvent
 
getLeftObjRegion() - Method in class group1.model.gameobject.projectile.Projectile
Returns the ObjRegion on the left side of the Projectile that gives damage.
getLevelCount() - Method in class group1.model.Game
Returns the result of the level counter.
getMaxHP() - Method in class group1.model.gameobject.LivingObj
Get the maximum value for hit points.
getMyFrame() - Method in class group1.view.View
THIS IS ONLY HERE FOR TESTING PURPOSES
getMyGamePanel() - Method in class group1.view.View
THIS IS ONLY HERE FOR TESTING PURPOSES
getNumberOfEnvironmets() - Static method in enum group1.model.EnvironmentList
 
getNumberOfStates() - Static method in enum group1.model.gameobject.GameObjState
 
getNumberOfTypes() - Static method in enum group1.model.gameobject.GameObjType
Accessor for the quantity of GameObjTypes
getNumObjects() - Method in class group1.model.EnvironmentGridSpace
 
getNumRegions() - Method in class group1.model.gameobject.GameObj
Get the number of regions in this object.
getObject(int) - Method in class group1.model.Environment
Return the specified object in the environment.
getObject(int) - Method in class group1.model.EnvironmentGridSpace
 
getObjectList() - Method in class group1.model.Environment
Return the full list of objects in the Environment.
getObjectListSize() - Method in class group1.model.Environment
Return the size of the list of all objects in the environment.
getObjects() - Method in class group1.model.EnvironmentGridSpace
 
getParentGameObj() - Method in class group1.model.objectregion.ObjRegion
Navigates back to the GameObj that contains this ObjRegion.
getPathName() - Method in enum group1.model.EnvironmentList
 
getPicture() - Method in class group1.view.Sprite
Returns the file of the current animation picture.
getPictureList() - Method in class group1.model.gameobject.GameObj
Accessor for the PictureList
getPosition() - Method in class group1.model.EnvironmentGridSpace
 
getPosition() - Method in class group1.model.gameobject.GameObj
Get the position of the object.
getPositionX() - Method in class group1.model.gameobject.GameObj
Get the x-cooridinate position of the object.
getPositionY() - Method in class group1.model.gameobject.GameObj
Get the y-cooridinate position of the object.
getRandomGenerator() - Method in class group1.model.gameobject.enemy.Enemy
Returns the random value generator that this Enemy is using.
getRectangle() - Method in class group1.model.gameobject.GameObj
Directly get the rectangle representing the placement of this object.
getRegion(int) - Method in class group1.model.gameobject.GameObj
Get the i'th region in this object.
getRightObjRegion() - Method in class group1.model.gameobject.projectile.Projectile
Returns the ObjRegion on the right side of the Projectile that gives damage.
getShape() - Method in class group1.model.objectregion.ObjRegion
Returns the shape of this ObjRegion.
getSpeed() - Method in class group1.model.gameobject.projectile.Projectile
Returns the speed (magnitude of velocity) of the Projectile.
getSquare() - Method in class group1.model.EnvironmentGridSpace
 
getState() - Method in class group1.model.gameobject.GameObj
Accessor for the state
getTeam() - Method in class group1.model.gameobject.GameObj
Return the team of this object.
getTopObjRegion() - Method in class group1.model.gameobject.projectile.Projectile
Returns the ObjRegion on the top side of the Projectile that gives damage.
getType() - Method in enum group1.view.audio.Audio
Get the AudioType.
getVelocity() - Method in class group1.model.gameobject.GameObj
Get the velocity of the object.
getVelocityVector() - Method in class group1.model.gameobject.projectile.Projectile
Gives the current velocity vector of the Projectile, based on its current speed and direction.
getVelocityX() - Method in class group1.model.gameobject.GameObj
Get the x-component of the velocity.
getVelocityY() - Method in class group1.model.gameobject.GameObj
Get the y-component of the velocity.
getWhichSide() - Method in class group1.model.objectregion.ObjRegion
Returns the specified side of the GameObj that this ObjRegion is on.
getWidth() - Method in class group1.model.Environment
Return the "true" width of the Environment.
getWidth() - Method in class group1.model.gameobject.GameObj
Get the width of the object.
getX() - Method in class group1.model.XYPair
Returns the x value.
getY() - Method in class group1.model.XYPair
Returns the y value.
givesDamage() - Method in class group1.model.objectregion.ObjRegion
Returns true if this object gives damage, else false.
givesHowMuchDamage() - Method in class group1.model.objectregion.ObjRegion
Returns the amount of damage that this object gives to objects that it hits.
GRID_SPACE_SIZE - Static variable in class group1.model.gameobject.GameObj
The standard size of a grid space in the environment this object will be placed in.
Ground - Class in group1.model.gameobject.terrain
Terrain object: Ground.
Ground(double, double, PictureList) - Constructor for class group1.model.gameobject.terrain.Ground
Constructor.
group1 - package group1
 
group1.control - package group1.control
 
group1.model - package group1.model
 
group1.model.gameevent - package group1.model.gameevent
 
group1.model.gameobject - package group1.model.gameobject
 
group1.model.gameobject.enemy - package group1.model.gameobject.enemy
 
group1.model.gameobject.obstacle - package group1.model.gameobject.obstacle
 
group1.model.gameobject.projectile - package group1.model.gameobject.projectile
 
group1.model.gameobject.terrain - package group1.model.gameobject.terrain
 
group1.model.objectregion - package group1.model.objectregion
 
group1.tests - package group1.tests
 
group1.view - package group1.view
 
group1.view.audio - package group1.view.audio
 
group1.view.modelListeners - package group1.view.modelListeners
 

H

handleBuyMenuEvent(GameEvent) - Method in class group1.view.View
The buyMenuEvent handler.
handleContinueMenuEvent(GameEvent) - Method in class group1.view.View
The continueMenuEvent handler.
handleEndOfLevelEvent(GameEvent) - Method in class group1.view.View
The endOfLevelEvent handler.
handleInGameEvent(GameEvent) - Method in class group1.view.View
The inGameEvent handler.
handleInstructionsEvent(GameEvent) - Method in class group1.view.View
The intructionsEvent handler.
handleJeffDiesEvent(GameEvent) - Method in class group1.view.View
The jeffDiesEvent handler.
handleLoadEvent(GameEvent) - Method in class group1.view.View
The loadEvent handler.
handleMainMenuEvent(GameEvent) - Method in class group1.view.View
The mainMenuEvent handler.
handleNewGameEvent(GameEvent) - Method in class group1.view.View
The newGameEvent handler.
handlePauseMenuEvent(GameEvent) - Method in class group1.view.View
The pauseMenuEvent handler.
handleSaveEvent(GameEvent) - Method in class group1.view.View
The saveEvent handler.
handleStartOfLevelEvent(GameEvent) - Method in class group1.view.View
The startOfMenuEvent handler.
handleWeaponSwitchMenuEvent(GameEvent) - Method in class group1.view.View
The weaponSwitchMenuEvent handler.
hasAudioData() - Method in class group1.view.audio.AudioChannel
Returns whether or not this thread is busy playing audio (or cleaning it up).
hasFireball() - Method in class group1.model.gameobject.LivingObj
Returns true if object has a fireball.
hasKatana() - Method in class group1.model.gameobject.LivingObj
Returns true if object has a katana.
hasLaser() - Method in class group1.model.gameobject.LivingObj
Returns true if object has a laser.
hasTomahawk() - Method in class group1.model.gameobject.LivingObj
Returns true if object has a tomahawk.
hasWeapon(char) - Method in class group1.model.gameobject.LivingObj
Returns true if object currently has the specified weapon, else false.
hasWeaponIndex(int) - Method in class group1.model.gameobject.LivingObj
Returns true if object currently has the specified weapon, else false.
hitAnotherObject(ObjRegion) - Method in class group1.model.objectregion.ObjRegion
This method defines exactly what happens when this ObjRegion hits another ObjRegion.
horiz_lc(int, char) - Static method in class group1.model.MyUtilities
 
HorizontalMovingPassThruPlatform - Class in group1.model.gameobject.obstacle
Obstacle: Moving platform that moves horizontally, back and forth, and can be jumped through.
HorizontalMovingPassThruPlatform(double, double, PictureList) - Constructor for class group1.model.gameobject.obstacle.HorizontalMovingPassThruPlatform
Constructor.

I

id - Variable in class group1.model.gameobject.GameObj
A special ID that represents this object.
incrementLevelCount() - Method in class group1.model.Game
Increment the level counter by one (when Jeff reaches the end of a level
InGameEvent - Class in group1.model.gameevent
 
InGameEvent(List<GameObj>, XYPair, int, int) - Constructor for class group1.model.gameevent.InGameEvent
 
InGameListener - Class in group1.view.modelListeners
 
InGameListener(View) - Constructor for class group1.view.modelListeners.InGameListener
 
initializeComponents() - Method in class group1.view.GamePanel
This method initializes the components.
Instructions - Class in group1.model.gameevent
 
Instructions() - Constructor for class group1.model.gameevent.Instructions
 
InstructionsEvent - Class in group1.model.gameevent
 
InstructionsEvent() - Constructor for class group1.model.gameevent.InstructionsEvent
 
InstructionsListener - Class in group1.view.modelListeners
 
InstructionsListener(View) - Constructor for class group1.view.modelListeners.InstructionsListener
 
intersectRegions(Shape) - Method in class group1.model.gameobject.GameObj
Get the list of all regions that a shape intersects.
inTheMainMenu() - Method in class group1.model.Game
In the main menu...
isActionPressed() - Method in class group1.control.Controller
Whether or not the action key is being pressed.
isDownPressed() - Method in class group1.control.Controller
Whether or not the down key is being pressed.
isJumpPressed() - Method in class group1.control.Controller
Whether or not the jump key is being pressed.
isLeftPressed() - Method in class group1.control.Controller
Whether or not the left key is being pressed.
isMovable - Variable in class group1.model.gameobject.GameObj
Whether or not this object actually moves.
isMovable() - Method in class group1.model.gameobject.GameObj
Get whether or not this object moves.
isObjectNearLadder(GameObj) - Method in class group1.model.Environment
Check whether or not an object is close enough to a ladder to grab it.
isObjectOnGround(GameObj) - Method in class group1.model.Environment
Check whether or not an object is on ground that it can walk on.
isOdd(int) - Static method in class group1.model.MyUtilities
 
isRightPressed() - Method in class group1.control.Controller
Whether or not the right key is being pressed.
isSameState(GameObj) - Method in class group1.model.gameobject.GameObj
Compares the states of two GameObjects.
isSelectPressed() - Method in class group1.control.Controller
Whether or not the select key is being pressed.
isSolid() - Method in class group1.model.objectregion.ObjRegion
Returns true if the object is impassable by another object, false if it is passable.
isStartPressed() - Method in class group1.control.Controller
Whether or not the start key is being pressed.
isUpPressed() - Method in class group1.control.Controller
Whether or not the up key is being pressed.
isWhitespace(int) - Static method in class group1.model.MyUtilities
 

J

Jeff - Class in group1.model.gameobject
Jeff, the hero of the game.
Jeff() - Constructor for class group1.model.gameobject.Jeff
Default constructor.
Jeff(double, double, PictureList) - Constructor for class group1.model.gameobject.Jeff
Constructor.
JEFF_TEAM - Static variable in class group1.model.gameobject.GameObj
For objects that cause damage to enemies but not to Jeff.
JeffController - Class in group1.control
The controller for Jeff, the main character.
JeffController(Jeff) - Constructor for class group1.control.JeffController
Constructor.
JeffDiesEvent - Class in group1.model.gameevent
 
JeffDiesEvent() - Constructor for class group1.model.gameevent.JeffDiesEvent
 
JeffDiesListener - Class in group1.view.modelListeners
 
JeffDiesListener(View) - Constructor for class group1.view.modelListeners.JeffDiesListener
 

K

Katana - Class in group1.model.gameobject.projectile
 
Katana() - Constructor for class group1.model.gameobject.projectile.Katana
 
katanaDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to katana damage.
keyPressed(KeyEvent) - Method in class group1.control.Controller
keyPressed method to implement KeyListener.
keyPressed(KeyEvent) - Method in class group1.control.JeffController
keyPressed method to implement KeyListener.
keyPressed(KeyEvent) - Method in class group1.control.PauseController
keyPressed method to implement KeyListener.
keyReleased(KeyEvent) - Method in class group1.control.Controller
keyReleased method to implement KeyListener.
keyReleased(KeyEvent) - Method in class group1.control.JeffController
keyReleased method to implement KeyListener.
keyReleased(KeyEvent) - Method in class group1.control.PauseController
keyReleased method to implement KeyListener.
keyTyped(KeyEvent) - Method in class group1.control.Controller
keyTyped method to implement KeyListener.

L

LadderDirection - Enum in group1.model.gameobject
The enumerated type for direction up or down a ladder.
Laser - Class in group1.model.gameobject.projectile
 
Laser() - Constructor for class group1.model.gameobject.projectile.Laser
 
laserDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to laser damage.
LEFT_SIDE - Static variable in class group1.model.objectregion.ObjRegion
Specifies that this region is on the left side of the game object.
levelName() - Method in class group1.model.Game
Returns the appropriate level name when passed the level counter.
LivingObj - Class in group1.model.gameobject
A "living" game object, which has hp, can receive damage, and can die.
LivingObj() - Constructor for class group1.model.gameobject.LivingObj
Default constructor.
LivingObj(double, double, double, double, boolean, int, PictureList) - Constructor for class group1.model.gameobject.LivingObj
Constructor.
LoadEvent - Class in group1.model.gameevent
 
LoadEvent() - Constructor for class group1.model.gameevent.LoadEvent
 
LoadListener - Class in group1.view.modelListeners
 
LoadListener(View) - Constructor for class group1.view.modelListeners.LoadListener
 

M

main(String[]) - Static method in class group1.GameTest
 
main(String[]) - Static method in class group1.model.EnvironmentTester
 
main(String[]) - Static method in class group1.tests.EnvironmentTest
 
main(String[]) - Static method in class group1.TheAdventuresOfJeff
Main class.
main(String[]) - Static method in class group1.view.audio.AudioFacade
Main for testing.
main(String[]) - Static method in class group1.view.audio.MusicPlayer
Main used for testing.
main(String[]) - Static method in class group1.view.GamePanel
For testing purposes only
main(String[]) - Static method in class group1.view.Sprite
The main method is just for testing purposes
main(String[]) - Static method in class group1.view.View
For testing purposed only
MainMenuEvent - Class in group1.model.gameevent
 
MainMenuEvent(int) - Constructor for class group1.model.gameevent.MainMenuEvent
 
MainMenuListener - Class in group1.view.modelListeners
 
MainMenuListener(View) - Constructor for class group1.view.modelListeners.MainMenuListener
 
makeEnv(String) - Method in class group1.tests.EnvironmentTest
 
makeRegions() - Method in class group1.model.gameobject.GameObj
A simple function to cover the object with 4 regions: a top, a bottom, a left side, and a right side.
makeSolid() - Method in class group1.model.gameobject.GameObj
A simple function to make the obj "solid" by adding 4 regions to cover the entire object: a top, a bottom, a left side, and a right side.
makeSolidTop() - Method in class group1.model.gameobject.GameObj
A simple function to make the top of the obj "solid" by adding one region.
max_hp - Variable in class group1.model.gameobject.LivingObj
The maximum hit points.
MAX_WALK_SPEED - Static variable in class group1.model.gameobject.enemy.Enemy
The maximum walking speed.
ModelListener - Class in group1.model
 
ModelListener() - Constructor for class group1.model.ModelListener
 
ModelListener(View) - Constructor for class group1.model.ModelListener
 
move(Environment) - Method in class group1.model.gameobject.enemy.Enemy
Movement function that should be called by the Environment at each time click.
move(Environment) - Method in class group1.model.gameobject.GameObj
Ask the object where it wants to move.
move(Environment) - Method in class group1.model.gameobject.Jeff
Movement function that should be called by the Enviroment at each time click.
move(Environment) - Method in class group1.model.gameobject.obstacle.HorizontalMovingPassThruPlatform
These platforms move left, slow down, turn around, move right, slow down, turn around, loop.
move(Environment) - Method in class group1.model.gameobject.projectile.Projectile
Movement function that should be called by the Environment at each time click.
move(Environment) - Method in class group1.model.gameobject.terrain.Terrain
Ask the object where it wants to move (which would be, quite simply, nowhere).
MusicPlayer - Class in group1.view.audio
A class to play audio files.
MusicPlayer(String, boolean) - Constructor for class group1.view.audio.MusicPlayer
Constructor.
MyUtilities - Class in group1.model
 
MyUtilities() - Constructor for class group1.model.MyUtilities
 

N

NewGameEvent - Class in group1.model.gameevent
 
NewGameEvent() - Constructor for class group1.model.gameevent.NewGameEvent
 
NewGameListener - Class in group1.view.modelListeners
 
NewGameListener(View) - Constructor for class group1.view.modelListeners.NewGameListener
 
nextFrame(List<GameObj>) - Method in class group1.view.GamePanel
This method receives sprite information, and then updates the display.
NO_TEAM - Static variable in class group1.model.gameobject.GameObj
For objects that cause no damage, and for objects that can cause damage to any and all living objects.
NUMBER_OF_SIDE_VALUES - Static variable in class group1.model.objectregion.ObjRegion
Number of valid game object side specification options.

O

ObjRegion - Class in group1.model.objectregion
ObjRegion represents a physical region within a GameObj.
ObjRegion(Rectangle2D, GameObj) - Constructor for class group1.model.objectregion.ObjRegion
Constructs a new region inside a game object.
ObjRegionTest - Class in group1.model.objectregion
 
ObjRegionTest() - Constructor for class group1.model.objectregion.ObjRegionTest
 

P

paintComponent(Graphics) - Method in class group1.model.EnvironmentTester.EnvPanel.ObjectPanel
 
paintComponent(Graphics) - Method in class group1.model.EnvironmentTester.EnvPanel
The method for painting this component.
passesThroughSolids() - Method in class group1.model.objectregion.ObjRegion
Returns true if the object passes through object regions for which isSolid() is true, else false.
pause() - Static method in class group1.model.MyUtilities
 
pause() - Method in class group1.view.audio.AudioChannel
Pause the thread.
pause() - Method in class group1.view.audio.MusicPlayer
Pause the thread.
pauseAll() - Method in class group1.view.audio.AudioFacade
Pause all audio channels.
pauseChannel(AudioChannel) - Method in class group1.view.audio.AudioFacade
Pause the specified audio channel.
PauseController - Class in group1.control
The controller for pausing the game.
PauseController(Game) - Constructor for class group1.control.PauseController
Constructor.
PauseMenuEvent - Class in group1.model.gameevent
 
PauseMenuEvent() - Constructor for class group1.model.gameevent.PauseMenuEvent
 
PauseMenuListener - Class in group1.view.modelListeners
 
PauseMenuListener(View) - Constructor for class group1.view.modelListeners.PauseMenuListener
 
PictureList - Class in group1.model.gameobject
A PictureList is a list of lists of pictures.
PictureList() - Constructor for class group1.model.gameobject.PictureList
Creates an empty picture list database.
playAudio(AudioCache, boolean) - Method in class group1.view.audio.AudioChannel
Play the requested audio from a cache.
playAudio(Audio) - Method in class group1.view.audio.AudioFacade
Play an audio file.
playMusic(Audio) - Method in class group1.view.audio.AudioFacade
Play music.
playSound(Audio) - Method in class group1.view.audio.AudioFacade
Play a sound effect.
Projectile - Class in group1.model.gameobject.projectile
A Projectile is a flying object that directly gives damage to another game object.
Projectile() - Constructor for class group1.model.gameobject.projectile.Projectile
Creates an idle Projectile.
promptYN() - Static method in class group1.model.MyUtilities
 

Q

QUOTE - Static variable in class group1.model.MyUtilities
 

R

randInt(int, int, Random) - Static method in class group1.model.MyUtilities
 
readBlock(BufferedReader) - Static method in class group1.model.MyUtilities
 
readInt(BufferedReader) - Static method in class group1.model.MyUtilities
 
readLetters(BufferedReader) - Static method in class group1.model.MyUtilities
 
regions - Variable in class group1.model.gameobject.GameObj
The list of regions within the object.
removeObject(GameObj) - Method in class group1.model.EnvironmentGridSpace
 
removeObject(int) - Method in class group1.model.EnvironmentGridSpace
 
RIGHT_SIDE - Static variable in class group1.model.objectregion.ObjRegion
Specifies that this region is on the right side of the game object.
run() - Method in class group1.model.Game
Run
run() - Method in class group1.view.audio.AudioChannel
A method called by the system to run the thread.
run() - Method in class group1.view.audio.MusicPlayer
Play the audio, using a loop that reads the audio byte-by-byte.

S

SaveEvent - Class in group1.model.gameevent
 
SaveEvent() - Constructor for class group1.model.gameevent.SaveEvent
 
SaveListener - Class in group1.view.modelListeners
 
SaveListener(View) - Constructor for class group1.view.modelListeners.SaveListener
 
setAcceleration(double, double) - Method in class group1.model.gameobject.GameObj
Set the acceleration of the object.
setAcceleration(XYPair) - Method in class group1.model.gameobject.GameObj
Set the acceleration of the object.
setAccelerationX(double) - Method in class group1.model.gameobject.GameObj
Set the x-component of the acceleration of the object.
setAccelerationY(double) - Method in class group1.model.gameobject.GameObj
Set the y-component of the acceleration of the object.
setAttackPower(double) - Method in class group1.model.gameobject.projectile.Projectile
Sets this Projectile to give the specified amount of damage.
setBuyMenuListener(ModelListener) - Method in class group1.model.Game
Sets the buy menu listener
setContinueMenuListener(ModelListener) - Method in class group1.model.Game
Sets the continue menu listener
setDirection(Direction) - Method in class group1.model.gameobject.projectile.Projectile
Sets the horizontal direction of this Projectile.
setEndOfLevelListener(ModelListener) - Method in class group1.model.Game
Sets the end of level listener
setGravity(double) - Method in class group1.model.Environment
Set the gravity.
setHitPoints(int) - Method in class group1.view.GamePanel
Accessor for the HP
setHowMuchDamage(double) - Method in class group1.model.objectregion.ObjRegion
Set the amount of damage that this object gives to objects that it hits.
setID(int) - Method in class group1.model.gameobject.GameObj
Set the ID.
setInGameListener(ModelListener) - Method in class group1.model.Game
Sets the in game listener
setInstructionsListener(ModelListener) - Method in class group1.model.Game
Sets the instructions listener
setIsSolid(boolean) - Method in class group1.model.objectregion.ObjRegion
Changes the solidity status.
setJeffDiesListener(ModelListener) - Method in class group1.model.Game
Sets the Jeff dies listener
setLoadListener(ModelListener) - Method in class group1.model.Game
Sets the load listener
setMainMenuListener(ModelListener) - Method in class group1.model.Game
Sets the main menu listener
setNewGameListener(ModelListener) - Method in class group1.model.Game
Sets the new game listener
setPassesThroughSolids(boolean) - Method in class group1.model.objectregion.ObjRegion
Change whether this region passes through solids.
setPauseMenuListener(ModelListener) - Method in class group1.model.Game
Sets the pause menu listener
setPictureList(PictureList) - Method in class group1.model.gameobject.GameObj
Mutator for the PictureList
setPosition(double, double) - Method in class group1.model.gameobject.GameObj
Set the position of the object.
setPosition(XYPair) - Method in class group1.model.gameobject.GameObj
Set the position of the object.
setPositionX(double) - Method in class group1.model.gameobject.GameObj
Set the x-position of the object.
setPositionY(double) - Method in class group1.model.gameobject.GameObj
Set the y-position of the object.
setRandomGenerator(Random) - Method in class group1.model.gameobject.enemy.Enemy
Set this Enemy object to use another random value generator.
setRectangle(double, double, double, double) - Method in class group1.model.gameobject.GameObj
Set the entire rectangle representing this object: position and size.
setSaveListener(ModelListener) - Method in class group1.model.Game
Sets the save listener
setScore(int) - Method in class group1.view.GamePanel
Accessor for the score.
setShape(Rectangle2D) - Method in class group1.model.objectregion.ObjRegion
Changes the shape of the ObjRegion.
setSize(double, double) - Method in class group1.model.gameobject.GameObj
Set the size of the object.
setSpeed(double) - Method in class group1.model.gameobject.projectile.Projectile
Sets the speed (magnitude of velocity) of this Projectile.
setStartOfLevelListener(ModelListener) - Method in class group1.model.Game
Sets the set start of level listener
setState(GameObjState) - Method in class group1.model.gameobject.GameObj
Mutator for the state
setTakesDamage(boolean) - Method in class group1.model.objectregion.ObjRegion
Change whether this region receives damage to the game object.
setTeam(int) - Method in class group1.model.gameobject.GameObj
Set the team value, to show which objects this one damages.
setToAttack(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to attack.
setToChangeWeapons(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to change his weapon.
setToDuck(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to duck.
setToExtendJump(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to extend his jump.
setToGiveNoDamage() - Method in class group1.model.objectregion.ObjRegion
Make this object give no damage.
setToJump(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to jump.
setToMove(Direction) - Method in class group1.model.gameobject.Jeff
Set Jeff to move left, right, or neither.
setToMoveOnLadder(LadderDirection) - Method in class group1.model.gameobject.