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

ACCEL - Static variable in class group1.model.gameobject.obstacle.HorizontalMovingPassThruPlatform
The acceleration of this platform.
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.
addController(Controller) - Method in class group1.view.View
Adds the controller to the frame's keylisteners
addFilm(List<File>, GameObjState) - Method in class group1.model.gameobject.PictureList
Adds a list of pictures to the PictureList
addMeToEnvironment(Environment, double, double) - Method in class group1.model.gameobject.enemy.ContactEnemy
PLEASE USE THIS FUNCTION TO ADD ME TO AN Environment.
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
Add an object to this grid space.
addPoints(int) - Method in class group1.model.Game
Add points to the total score.
addPoints(int) - Method in class group1.model.ScoreModelMediator
Add points to the total score.
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.
attackPower() - Method in class group1.model.gameobject.enemy.Enemy
The default attack power.
attackProbabilityDenominator() - Method in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will attack at a particular time step is attackProbabilityNumerator() out of attackProbabilityDenominator().
attackProbabilityNumerator() - Method in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will attack at a particular time step is attackProbabilityNumerator() out of attackProbabilityDenominator().
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.
AudioEvent - Class in group1.model.gameevent
 
AudioEvent(Audio) - Constructor for class group1.model.gameevent.AudioEvent
 
AudioFacade - Class in group1.view.audio
A facade class for the audio system.
AudioFacade() - Constructor for class group1.view.audio.AudioFacade
Constructor.
AudioListener - Class in group1.view.modelListeners
 
AudioListener(View) - Constructor for class group1.view.modelListeners.AudioListener
The Constructor
AudioModelMediator - Class in group1.model
A special mediator class that should be referenced by anything in the model that needs to cue AudioEvents.
AudioType - Enum in group1.view.audio
An enum type to differentiate between large, loopable music and one-time, cached SFX.

B

BonusShopMenu - Class in group1.view.menus
 
BonusShopMenu() - Constructor for class group1.view.menus.BonusShopMenu
The BonusShopMenu Constructor
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
The Constructor

C

changeDirectionFacing(Direction) - Method in class group1.model.gameobject.LivingObj
Set the direction in which this LivingObj faces.
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.
changeWeaponProbabilityDenominator() - Method in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will change weapons at a particular time step is changeWeaponProbabilityNumerator() out of changeWeaponProbabilityDenominator().
changeWeaponProbabilityNumerator() - Method in class group1.model.gameobject.enemy.Enemy
The probability that this Enemy will change weapons at a particular time step is changeWeaponProbabilityNumerator() out of changeWeaponProbabilityDenominator().
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.
Contact - Class in group1.model.gameobject.projectile
A Contact is a strange type of Projectile.
Contact() - Constructor for class group1.model.gameobject.projectile.Contact
Default constructor: sets host object to null.
Contact(GameObj) - Constructor for class group1.model.gameobject.projectile.Contact
Constructor specifying host object.
Contact(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Contact
Standard factory constructor.
Contact(double, double, PictureList, GameObj) - Constructor for class group1.model.gameobject.projectile.Contact
Standard factory constructor specifying host object.
contactDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to direct contact damage.
ContactEnemy - Class in group1.model.gameobject.enemy
ContactEnemy is an Enemy that has the power to damage other objects by touching them.
ContactEnemy(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.ContactEnemy
Constructor.
ContactEnemy() - Constructor for class group1.model.gameobject.enemy.ContactEnemy
Default constructor.
ContinueGameMenu - Class in group1.view.menus
 
ContinueGameMenu() - Constructor for class group1.view.menus.ContinueGameMenu
The ContinueGameMenu Constructor
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
The Constructor
Controller - Class in group1.control
A class for a generic game controller.
Controller() - Constructor for class group1.control.Controller
Default constructor.
count - Variable in class group1.view.menus.BonusShopMenu
 
count - Variable in class group1.view.menus.ContinueGameMenu
 
count - Variable in class group1.view.menus.InstructionMenu
 
count - Variable in class group1.view.menus.PauseMenu
 
count - Variable in class group1.view.menus.WeaponSwitchMenu
 
count - Variable in class group1.view.menus.WelcomeMenu
 
createEnvironment(Jeff, String, PictureList[]) - Method in class group1.model.EnvironmentLoader
Create an Environment, given a text file and the necessary objects.
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(ObjRegion) - Method in class group1.model.objectregion.ObjRegion
Defines what happens after this ObjRegion receives damage.
DeathModelMediator - Class in group1.model
A special mediator class that tells the Environment when GameObjs should be removed.
decrementInvincibilityCounter() - Method in class group1.model.gameobject.LivingObj
Decrement the invincibility counter of this object.
die() - Method in class group1.model.gameobject.enemy.Enemy
An overridable method that defines exactly what happens to an Enemy when it dies.
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.
displayMessage(String) - Method in class group1.view.GamePanel
Mutator for the messagebar.
doEvent(GameEvent) - Method in class group1.model.ModelListener
 
doEvent(AudioEvent) - Method in class group1.view.modelListeners.AudioListener
Communicates to the View to begin handling the event
doEvent(BuyMenuEvent) - Method in class group1.view.modelListeners.BuyMenuListener
Communicates to the View to begin handling the event
doEvent(ContinueMenuEvent) - Method in class group1.view.modelListeners.ContinueMenuListener
Communicates to the View to begin handling the event
doEvent(EndOfLevelEvent) - Method in class group1.view.modelListeners.EndOfLevelListener
Communicates to the View to begin handling the event
doEvent(InGameEvent) - Method in class group1.view.modelListeners.InGameListener
Communicated to the View to begin handling the event
doEvent(InstructionsEvent) - Method in class group1.view.modelListeners.InstructionsListener
Communicates to the View to begin handling the event
doEvent(JeffDiesEvent) - Method in class group1.view.modelListeners.JeffDiesListener
Communicates to the View to begin handling the event
doEvent(LoadEvent) - Method in class group1.view.modelListeners.LoadListener
Communicates to the View to begin handling the event
doEvent(MainMenuEvent) - Method in class group1.view.modelListeners.MainMenuListener
Communicates to the View to begin handling the event
doEvent(NewGameEvent) - Method in class group1.view.modelListeners.NewGameListener
Communicates to the View to begin handling the event
doEvent(PauseMenuEvent) - Method in class group1.view.modelListeners.PauseMenuListener
Communicates to the View to begin handling the event
doEvent(SaveEvent) - Method in class group1.view.modelListeners.SaveListener
 
doEvent(StartOfLevelEvent) - Method in class group1.view.modelListeners.StartOfLevelListener
Communicates to the View to begin handling the event
doEvent(WeaponSwitchMenuEvent) - Method in class group1.view.modelListeners.WeaponSwitchMenuListener
Communicates to the View to begin handling the event

E

emptySpriteSet() - Method in class group1.view.GamePanel
Empty this panel of all its sprites.
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
The Constructor
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(double, double, double, double, int, PictureList, boolean, double) - Constructor for class group1.model.gameobject.enemy.Enemy
Constructor designed for greater control over enemy size and hp.
Enemy() - Constructor for class group1.model.gameobject.enemy.Enemy
Default constructor.
Enemy001 - Class in group1.model.gameobject.enemy
 
Enemy001(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.Enemy001
 
Enemy002 - Class in group1.model.gameobject.enemy
 
Enemy002(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.Enemy002
 
Enemy003 - Class in group1.model.gameobject.enemy
 
Enemy003(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.Enemy003
 
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(List<GameObj>, Jeff, int, int) - 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
Default constructor.
EnvironmentGridSpace(double, double, double) - Constructor for class group1.model.EnvironmentGridSpace
Constructor.
EnvironmentList - Enum in group1.model
 
EnvironmentLoader - Class in group1.model
A class for loading an environment from a text file.
EnvironmentTester - Class in group1.model
Originally a tester for the Environment.
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.
equals(GameObjState) - Method in enum group1.model.gameobject.GameObjState
 
equals(XYPair) - Method in class group1.model.XYPair
Compares two points.

F

facingWhichDirection() - Method in class group1.model.gameobject.LivingObj
The direction in which the LivingObj is facing.
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(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Fireball
Standard factory constructor.
fireDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to fire damage.

G

Game - Class in group1.model
The game class.
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.
GameObj(double, double, PictureList) - Constructor for class group1.model.gameobject.GameObj
Standard factory 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.
getASCIIcharacter() - Method in enum group1.model.gameobject.GameObjType
Accessor for the ASCIIcharacter
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.
getAudio() - Method in class group1.model.gameevent.AudioEvent
 
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.
getContact() - Method in class group1.model.gameobject.enemy.ContactEnemy
Gets the Contact that inflicts damage on other objects.
getCount() - Method in class group1.view.menus.BonusShopMenu
Keeps track of the count, wrapping around the array as neccessary
getCount() - Method in class group1.view.menus.ContinueGameMenu
Keeps track of the count, wrapping around the array as neccessary
getCount() - Method in class group1.view.menus.InstructionMenu
Keeps track of the count, wrapping around the array as neccessary
getCount() - Method in class group1.view.menus.PauseMenu
Keeps track of the count, wrapping around the array as neccessary
getCount() - Method in class group1.view.menus.WeaponSwitchMenu
Keeps track of the count, wrapping around the array as neccessary
getCount() - Method in class group1.view.menus.WelcomeMenu
Keeps track of the count, wrapping around the array as neccessary
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.Contact
Returns a letter code indicating the type of damage that this Projectile gives.
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.
getDirectoryName() - Method in enum group1.model.gameobject.GameObjType
Accessor for the directoryName
getFilename() - Method in enum group1.view.audio.Audio
Get the file name.
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.
getHostObj() - Method in class group1.model.gameobject.projectile.Contact
Get the current host object.
getID() - Method in class group1.model.gameobject.GameObj
Get the ID.
getInstance() - Static method in class group1.model.AudioModelMediator
Get an instance of this class.
getInstance() - Static method in class group1.model.DeathModelMediator
Get an instance of this class.
getInstance() - Static method in class group1.model.EnvironmentLoader
Get an instance of this class.
getInstance(PictureList[]) - Static method in class group1.model.gameobject.GameObjFactory
Get an instance of this class.
getInstance() - Static method in class group1.model.gameobject.InvincibilityHandler
Get an instance of this class.
getInstance() - Static method in class group1.model.ScoreModelMediator
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.
getLevelNumber() - Method in class group1.model.gameevent.NewGameEvent
 
getMaxHP() - Method in class group1.model.gameobject.LivingObj
Get the maximum value for hit points.
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
Get the number of objects in this grid space.
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
Get the i'th object in this grid space.
getObjectList() - Method in class group1.model.Environment
Return the full list of objects in the Environment.
getObjectListCopy() - Method in class group1.model.Environment
Return a copy of the 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
Get the list of objects in this grid space.
getOptionHighlighted() - Method in class group1.model.gameevent.InstructionsEvent
 
getOptionHighlighted() - Method in class group1.model.gameevent.MainMenuEvent
 
getOptionHighlighted() - Method in class group1.model.gameevent.PauseMenuEvent
 
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
Get the position of this grid space.
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.
getScore() - Method in class group1.model.Game
Get the current score.
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
Directly get the rectangle representing this grid space.
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.
giveDamage() - Method in class group1.model.gameobject.GameObj
An overridable method that defines exactly what happens to a LivingObj when it gives damage.
giveDamage() - Method in class group1.model.gameobject.Jeff
Makes Jeff bounce off of enemies.
giveHP(int) - Method in class group1.model.gameobject.Jeff
Give Jeff HP.
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.
Goomba - Class in group1.model.gameobject.enemy
 
Goomba(double, double, PictureList) - Constructor for class group1.model.gameobject.enemy.Goomba
 
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.item - package group1.model.gameobject.item
 
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.view - package group1.view
 
group1.view.audio - package group1.view.audio
 
group1.view.menus - package group1.view.menus
 
group1.view.modelListeners - package group1.view.modelListeners
 

H

handleAudioEvent(AudioEvent) - Method in class group1.view.View
The audioEvent handler.
handleBuyMenuEvent(BuyMenuEvent) - Method in class group1.view.View
The buyMenuEvent handler.
handleContinueMenuEvent(ContinueMenuEvent) - Method in class group1.view.View
The continueMenuEvent handler.
handleEndOfLevelEvent(EndOfLevelEvent) - Method in class group1.view.View
The endOfLevelEvent handler.
handleInGameEvent(InGameEvent) - Method in class group1.view.View
The inGameEvent handler.
handleInstructionsEvent(InstructionsEvent) - Method in class group1.view.View
The intructionsEvent handler.
handleJeffDiesEvent(JeffDiesEvent) - Method in class group1.view.View
The jeffDiesEvent handler.
handleLoadEvent(LoadEvent) - Method in class group1.view.View
The loadEvent handler.
handleMainMenuEvent(MainMenuEvent) - Method in class group1.view.View
The mainMenuEvent handler.
handleNewGameEvent(NewGameEvent) - Method in class group1.view.View
The newGameEvent handler.
handlePauseMenuEvent(PauseMenuEvent) - Method in class group1.view.View
The pauseMenuEvent handler.
handleSaveEvent(SaveEvent) - Method in class group1.view.View
The saveEvent handler.
handleStartOfLevelEvent(StartOfLevelEvent) - Method in class group1.view.View
The startOfMenuEvent handler.
handleWeaponSwitchMenuEvent(WeaponSwitchMenuEvent) - 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
 
HorizontalMovingLeftPassThruPlatform - Class in group1.model.gameobject.obstacle
Obstacle: Moving platform that moves horizontally, back and forth, and can be jumped through.
HorizontalMovingLeftPassThruPlatform(double, double, PictureList) - Constructor for class group1.model.gameobject.obstacle.HorizontalMovingLeftPassThruPlatform
Constructor.
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.
HorizontalMovingRightPassThruPlatform - Class in group1.model.gameobject.obstacle
Obstacle: Moving platform that moves horizontally, back and forth, and can be jumped through.
HorizontalMovingRightPassThruPlatform(double, double, PictureList) - Constructor for class group1.model.gameobject.obstacle.HorizontalMovingRightPassThruPlatform
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
The constructor
initializeComponents() - Method in class group1.view.GamePanel
This method initializes the components.
InstructionMenu - Class in group1.view.menus
 
InstructionMenu(Controller) - Constructor for class group1.view.menus.InstructionMenu
The InstructionMenu Constructor
instructions(InstructionsEvent) - Method in class group1.model.Game
 
Instructions - Class in group1.model.gameevent
 
Instructions() - Constructor for class group1.model.gameevent.Instructions
 
InstructionsEvent - Class in group1.model.gameevent
 
InstructionsEvent(int, boolean) - Constructor for class group1.model.gameevent.InstructionsEvent
 
InstructionsEvent(boolean) - Constructor for class group1.model.gameevent.InstructionsEvent
 
InstructionsListener - Class in group1.view.modelListeners
 
InstructionsListener(View) - Constructor for class group1.view.modelListeners.InstructionsListener
The Constructor
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...
InvincibilityHandler - Class in group1.model.gameobject
A singleton class that handles temporary invicincibility.
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.
isInvincible() - Method in class group1.model.gameobject.LivingObj
Return whether or not this living object is temporarily invincible.
isItem() - Method in class group1.model.objectregion.ObjRegion
Returns true if the object is an item, else false.
isJeff() - Method in class group1.model.objectregion.ObjRegion
Returns true if the object is Jeff, else false.
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 state of this GameObj to the state of another GameObj.
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
 
Item - Class in group1.model.gameobject.item
An abstract "pickup" item.
Item(double, double, double, double, PictureList) - Constructor for class group1.model.gameobject.item.Item
Constructor.
itemEffect(Jeff) - Method in class group1.model.gameobject.item.Item
The effect of this item on Jeff.
itemEffect(Jeff) - Method in class group1.model.gameobject.item.Mushroom
Item effect: Give Jeff 5 HP and 200 points, play a sound, and destroy this object.
itemEffectFromMyGameObj(ObjRegion) - Method in class group1.model.objectregion.ObjRegion
Defines what happens if this GameObj must give an item effect to another GameObj.

J

Jeff - Class in group1.model.gameobject
Jeff, the hero of the game.
Jeff() - Constructor for class group1.model.gameobject.Jeff
Default constructor.
Jeff(PictureList) - Constructor for class group1.model.gameobject.Jeff
Constructor with no position values.
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
The Constructor

K

Katana - Class in group1.model.gameobject.projectile
 
Katana(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Katana
Standard factory constructor.
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.MenuController
keyPressed method to implement KeyListener.
keyPressed(KeyEvent) - Method in class group1.control.PauseController
keyPressed method to implement KeyListener.
keyPressed(KeyEvent) - Method in class group1.view.menus.BonusShopMenu
Key pressed.
keyPressed(KeyEvent) - Method in class group1.view.menus.ContinueGameMenu
Key pressed.
keyPressed(KeyEvent) - Method in class group1.view.menus.WeaponSwitchMenu
Key pressed.
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.
keyReleased(KeyEvent) - Method in class group1.view.menus.BonusShopMenu
Key released.
keyReleased(KeyEvent) - Method in class group1.view.menus.ContinueGameMenu
Key released.
keyReleased(KeyEvent) - Method in class group1.view.menus.WeaponSwitchMenu
Key released.
keyTyped(KeyEvent) - Method in class group1.control.Controller
keyTyped method to implement KeyListener.
keyTyped(KeyEvent) - Method in class group1.view.menus.BonusShopMenu
Key typed.
keyTyped(KeyEvent) - Method in class group1.view.menus.ContinueGameMenu
Key typed.
keyTyped(KeyEvent) - Method in class group1.view.menus.WeaponSwitchMenu
Key typed.

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(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Laser
Standard factory constructor.
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
 
loadGame() - Method in class group1.model.Game
 
LoadListener - Class in group1.view.modelListeners
 
LoadListener(View) - Constructor for class group1.view.modelListeners.LoadListener
The Constructor

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.TheAdventuresOfJeff
Main class.
main(String[]) - Static method in class group1.view.audio.AudioFacade
Main for testing.
main(String[]) - Static method in class group1.view.GamePanel
For testing purposes only
main(String[]) - Static method in class group1.view.menus.BonusShopMenu
Main.
main(String[]) - Static method in class group1.view.menus.ContinueGameMenu
Main.
main(String[]) - Static method in class group1.view.menus.InstructionMenu
Main.
main(String[]) - Static method in class group1.view.menus.PauseMenu
Main.
main(String[]) - Static method in class group1.view.menus.WeaponSwitchMenu
Main.
main(String[]) - Static method in class group1.view.menus.WelcomeMenu
Main.
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
mainMenu(MainMenuEvent) - Method in class group1.model.Game
 
MainMenuEvent - Class in group1.model.gameevent
 
MainMenuEvent(int, boolean) - Constructor for class group1.model.gameevent.MainMenuEvent
 
MainMenuEvent(boolean) - Constructor for class group1.model.gameevent.MainMenuEvent
 
MainMenuListener - Class in group1.view.modelListeners
 
MainMenuListener(View) - Constructor for class group1.view.modelListeners.MainMenuListener
The Constructor
makeBottomSideRegion() - Method in class group1.model.gameobject.GameObj
Make the bottom side of an object, automatically sized and placed based on the size and position of the object.
makeItemRegions() - Method in class group1.model.gameobject.item.Item
Make the regions for an item.
makeLeftSideRegion() - Method in class group1.model.gameobject.GameObj
Make the left side of an object, automatically sized and placed based on the size and position of the object.
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.
makeRightSideRegion() - Method in class group1.model.gameobject.GameObj
Make the right side of an object, automatically sized and placed based on the size and position of the object.
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.
makeStandardEnemyRegions(double) - Method in class group1.model.gameobject.enemy.Enemy
Create the object regions special for a standard enemy, such as a Goomba.
makeString(int) - Method in class group1.view.menus.BonusShopMenu
 
makeTopSideRegion() - Method in class group1.model.gameobject.GameObj
Make the top side of an object, automatically sized and placed based on the size and position of the object.
max_hp - Variable in class group1.model.gameobject.LivingObj
The maximum hit points.
MAX_SPEED - Static variable in class group1.model.gameobject.obstacle.HorizontalMovingPassThruPlatform
The max speed this platform can move before turning around.
maxRunSpeed() - Method in class group1.model.gameobject.enemy.Enemy
The maximum running speed.
maxWalkSpeed() - Method in class group1.model.gameobject.enemy.Enemy
The maximum walking speed.
MENU_ITEMS - Static variable in class group1.view.menus.BonusShopMenu
 
MenuController - Class in group1.control
The controller for any and all menus in the game.
MenuController(Game) - Constructor for class group1.control.MenuController
Constructor.
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.enemy.Goomba
 
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.item.Item
Standard move function.
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.Contact
Movement function that should be called by the Environment at each time click.
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).
Mushroom - Class in group1.model.gameobject.item
A classic Mario mushroom.
Mushroom(double, double, PictureList) - Constructor for class group1.model.gameobject.item.Mushroom
Constructor.
myState - Variable in class group1.model.gameobject.GameObj
The current state of the object, used to determine animation
MyUtilities - Class in group1.model
 
MyUtilities() - Constructor for class group1.model.MyUtilities
 

N

newGame() - Method in class group1.model.Game
 
NewGameEvent - Class in group1.model.gameevent
 
NewGameEvent(int) - Constructor for class group1.model.gameevent.NewGameEvent
 
NewGameListener - Class in group1.view.modelListeners
 
NewGameListener(View) - Constructor for class group1.view.modelListeners.NewGameListener
The Constructor
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.
numberOfLevels - Static variable in enum group1.model.EnvironmentList
 

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.
ourFacingDirection - Variable in class group1.model.gameobject.LivingObj
The direction in which the LivingObj is facing.

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(PauseMenuEvent) - Method in class group1.model.Game
 
pause() - Static method in class group1.model.MyUtilities
 
pause() - Method in class group1.view.audio.AudioChannel
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.
pauseEnvironment() - Method in class group1.model.Game
 
PauseMenu - Class in group1.view.menus
 
PauseMenu(Controller) - Constructor for class group1.view.menus.PauseMenu
The PauseMenu Constructor
PauseMenuEvent - Class in group1.model.gameevent
 
PauseMenuEvent(int, boolean) - Constructor for class group1.model.gameevent.PauseMenuEvent
 
PauseMenuEvent(boolean) - Constructor for class group1.model.gameevent.PauseMenuEvent
 
PauseMenuListener - Class in group1.view.modelListeners
 
PauseMenuListener(View) - Constructor for class group1.view.modelListeners.PauseMenuListener
The Constructor
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(Audio) - Method in class group1.model.AudioModelMediator
Play the requested audio.
playAudio(Audio) - Method in class group1.model.Game
Play the requested audio.
playAudio(Audio) - Method in class group1.model.gameobject.GameObj
Play a piece of audio by sending it to the game to play an event.
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.
positive(int) - Method in class group1.view.menus.BonusShopMenu
Ensures that the modulus of the count is always positive
positive(int) - Method in class group1.view.menus.ContinueGameMenu
Ensures that the modulus of the count is always positive
positive(int) - Method in class group1.view.menus.InstructionMenu
Ensures that the modulus of the count is always positive
positive(int) - Method in class group1.view.menus.PauseMenu
Ensures that the modulus of the count is always positive
positive(int) - Method in class group1.view.menus.WeaponSwitchMenu
Ensures that the modulus of the count is always positive
positive(int) - Method in class group1.view.menus.WelcomeMenu
Ensures that the modulus of the count is always positive
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.
Projectile(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Projectile
Creates an idle Projectile.
projectileSpeed() - Method in class group1.model.gameobject.enemy.Enemy
The default speed of projectiles created by this Enemy.
promptYN() - Static method in class group1.model.MyUtilities
 

Q

quit() - Method in class group1.model.Game
 
quit() - Method in class group1.view.menus.InstructionMenu
 
quit() - Method in class group1.view.menus.WelcomeMenu
 
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.
removeObj(GameObj) - Method in class group1.model.DeathModelMediator
Remove the requested object from the current environment.
removeObj(GameObj) - Method in class group1.model.Environment
Remove an object.
removeObject(GameObj) - Method in class group1.model.EnvironmentGridSpace
Remove an object from this grid space.
removeObject(int) - Method in class group1.model.EnvironmentGridSpace
Remove the i'th object from this grid space.
resetMovement() - Method in class group1.model.gameobject.Jeff
Reset Jeff's movements, to begin a new level cleanly.
resize(Rectangle2D) - Method in class group1.model.objectregion.ObjRegion
 
resizeBottomRegion(ObjRegion) - Method in class group1.model.gameobject.GameObj
Automatically resize an object region that is a "bottom" side.
resizeLeftRegion(ObjRegion) - Method in class group1.model.gameobject.GameObj
Automatically resize an object region that is a "left" side.
resizeRightRegion(ObjRegion) - Method in class group1.model.gameobject.GameObj
Automatically resize an object region that is a "right" side.
resizeTopRegion(ObjRegion) - Method in class group1.model.gameobject.GameObj
Automatically resize an object region that is a "top" side.
resumeEnvironment() - Method in class group1.model.Game
 
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 the game, by running time clicks in the environment.
run() - Method in class group1.view.audio.AudioChannel
A method called by the system to run the thread.
runAcceleration() - Method in class group1.model.gameobject.enemy.Enemy
The acceleration while running.

S

SaveEvent - Class in group1.model.gameevent
 
SaveEvent() - Constructor for class group1.model.gameevent.SaveEvent
 
saveGame() - Method in class group1.model.Game
 
SaveListener - Class in group1.view.modelListeners
 
SaveListener(View) - Constructor for class group1.view.modelListeners.SaveListener
The Constructor
SCORE - Static variable in class group1.view.menus.BonusShopMenu
 
ScoreModelMediator - Class in group1.model
A special mediator class that should be referenced by anything in the model that needs to add points to the game's score.
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.
setAudioListener(AudioListener) - Method in class group1.model.Game
Sets the audio listener
setBuyMenuListener(BuyMenuListener) - Method in class group1.model.Game
Sets the buy menu listener
setContinueMenuListener(ContinueMenuListener) - Method in class group1.model.Game
Sets the continue menu listener
setCount(int) - Method in class group1.view.menus.PauseMenu
 
setCount(int) - Method in class group1.view.menus.WelcomeMenu
 
setDirection(Direction) - Method in class group1.model.gameobject.projectile.Contact
NOT AVAILABLE FOR CONTACT.
setDirection(Direction) - Method in class group1.model.gameobject.projectile.Projectile
Sets the horizontal direction of this Projectile.
setEnabled(boolean) - Method in class group1.control.MenuController
 
setEnabled(boolean) - Method in class group1.control.PauseController
 
setEndOfLevelListener(EndOfLevelListener) - Method in class group1.model.Game
Sets the end of level listener
setEnvironment(Environment) - Method in class group1.model.DeathModelMediator
Set the environment referenced by this class.
setGame(Game) - Method in class group1.model.AudioModelMediator
Set the game referenced by this class.
setGame(Game) - Method in class group1.model.ScoreModelMediator
Set the game referenced by this class.
setGravity(double) - Method in class group1.model.Environment
Set the gravity.
setHitPoints(int) - Method in class group1.view.GamePanel
Mutator for the HP
setHostObj(GameObj) - Method in class group1.model.gameobject.projectile.Contact
Set a new host object.
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(InGameListener) - Method in class group1.model.Game
Sets the in game listener
setInstructionsListener(InstructionsListener) - Method in class group1.model.Game
Sets the instructions listener
setInvincibilityPeriod(long) - Method in class group1.model.gameobject.LivingObj
Set the amount of time this object should be invincible for.
setInvincible(LivingObj) - Static method in class group1.model.gameobject.InvincibilityHandler
Add a object to our list to make it invincible.
setIsItem(boolean) - Method in class group1.model.objectregion.ObjRegion
Changes whether or not this is an item that can be picked up by Jeff.
setIsJeff(boolean) - Method in class group1.model.objectregion.ObjRegion
Changes whether or not this is a region of Jeff.
setIsSolid(boolean) - Method in class group1.model.objectregion.ObjRegion
Changes the solidity status.
setJeffDiesListener(JeffDiesListener) - Method in class group1.model.Game
Sets the Jeff dies listener
setLoadListener(LoadListener) - Method in class group1.model.Game
Sets the load listener
setMainMenuController(MenuController) - Method in class group1.view.View
 
setMainMenuListener(MainMenuListener) - Method in class group1.model.Game
Sets the main menu listener
setNewGameListener(NewGameListener) - 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.
setPauseMenuController(PauseController) - Method in class group1.view.View
 
setPauseMenuListener(PauseMenuListener) - Method in class group1.model.Game
Sets the pause menu listener
setPictureList(PictureList) - Method in class group1.model.gameobject.GameObj
Mutator for the PictureList.
setPointValue(int) - Method in class group1.model.gameobject.enemy.Enemy
Set the number of points this enemy is worth.
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.
setProjectileTeam(int) - Method in class group1.model.gameobject.projectile.Projectile
setTeam(int) in GameObj is protected !!!!!!!!!! This function allows Jeff or an enemy to set the team of its Projectile to its own.
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(SaveListener) - Method in class group1.model.Game
Sets the save listener
setScore(int) - Method in class group1.view.GamePanel
Mutator 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.Contact
NOT AVAILABLE FOR CONTACT.
setSpeed(double) - Method in class group1.model.gameobject.projectile.Projectile
Sets the speed (magnitude of velocity) of this Projectile.
setStartOfLevelListener(StartOfLevelListener) - 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.Jeff
Set Jeff to move up a ladder, down a ladder, or neither.
setToRun(boolean) - Method in class group1.model.gameobject.Jeff
Set Jeff to run.
setVelocity(double, double) - Method in class group1.model.gameobject.GameObj
Set the velocity of the object.
setVelocity(XYPair) - Method in class group1.model.gameobject.GameObj
Set the velocity of the object.
setVelocityX(double) - Method in class group1.model.gameobject.GameObj
Set the x-component of the velocity of the object.
setVelocityY(double) - Method in class group1.model.gameobject.GameObj
Set the y-component of the velocity of the object.
setVulnerable() - Method in class group1.model.gameobject.LivingObj
Make an object no longer invincible, assuming it already was.
setw(int, String) - Static method in class group1.model.MyUtilities
 
setw(int, int) - Static method in class group1.model.MyUtilities
 
setWeaponsSwitchMenuListener(WeaponSwitchMenuListener) - Method in class group1.model.Game
Sets the weapon switch menu listener
setWhichSide(int) - Method in class group1.model.objectregion.ObjRegion
Change the side of the GameObj that this ObjRegion is on.
setX(double) - Method in class group1.model.XYPair
Sets the x value.
setY(double) - Method in class group1.model.XYPair
Sets the y value.
shape - Variable in class group1.model.gameobject.GameObj
A rectangle representing the position and size of the object.
shouldBeBlinking() - Method in class group1.model.gameobject.GameObj
A special overridable method to inform the view whether or not this object should be "blinking." (The idea is that Jeff should blink while he's invincible.) (As such, this is false for virtually all GameObjs.
shouldBeBlinking() - Method in class group1.model.gameobject.Jeff
Whether or not Jeff is invincible and should be "blinking." (Overrides GameObj template method.)
shouldBeMoving(Environment) - Method in class group1.model.gameobject.enemy.Enemy
In the interest of not letting enemies run around on their own (and into pits, even), we might choose to only move an enemy if they've come within a set distance to Jeff.
shouldCreate() - Method in class group1.model.gameevent.InstructionsEvent
 
shouldCreate() - Method in class group1.model.gameevent.MainMenuEvent
 
shouldCreate() - Method in class group1.model.gameevent.PauseMenuEvent
 
shouldKill() - Method in class group1.model.gameevent.InstructionsEvent
 
shouldKill() - Method in class group1.model.gameevent.MainMenuEvent
 
shouldKill() - Method in class group1.model.gameevent.PauseMenuEvent
 
SIDE_UNDEFINED - Static variable in class group1.model.objectregion.ObjRegion
Specifies that the side of the game object that the region is on is undefined.
Sprite - Class in group1.view
 
Sprite() - Constructor for class group1.view.Sprite
The default constructor
Sprite(GameObj) - Constructor for class group1.view.Sprite
The constructor given a GameObj
startingHP() - Static method in class group1.model.gameobject.enemy.Enemy
Enemy's starting maximum hit points.
StartOfLevelEvent - Class in group1.model.gameevent
 
StartOfLevelEvent(String, double, double) - Constructor for class group1.model.gameevent.StartOfLevelEvent
 
StartOfLevelListener - Class in group1.view.modelListeners
 
StartOfLevelListener(View) - Constructor for class group1.view.modelListeners.StartOfLevelListener
The Constructor
stopAllAudio() - Method in class group1.view.audio.AudioFacade
Stop all audio channels' audio.
stopAllThreads() - Method in class group1.view.audio.AudioFacade
Stop all audio channels' threads, and remove all channels from this class.
stopAudio() - Method in class group1.view.audio.AudioChannel
Stop the current audio.
stopChannelAudio(AudioChannel) - Method in class group1.view.audio.AudioFacade
Stop the specified audio channel's audio.
stopChannelThread(AudioChannel) - Method in class group1.view.audio.AudioFacade
Pause the specified audio channel's thread, and remove that thread from this class.
stopHorizontal() - Method in class group1.model.gameobject.GameObj
Stop horizontal movement, say if it hits a wall.
stopMyGameObj(ObjRegion) - Method in class group1.model.objectregion.ObjRegion
Stops this ObjRegion's GameObj.
stopThread() - Method in class group1.view.audio.AudioChannel
Stop the thread.
stopVertical() - Method in class group1.model.gameobject.GameObj
Stop vertical movement, say if it hits a floor or ceiling.
stringToEnum(String) - Static method in enum group1.view.audio.Audio
Converts a string to the associated Audio enum type.
stringToGameObjState(String) - Static method in enum group1.model.gameobject.GameObjState
 
stringToGameObjType(String) - Static method in enum group1.model.gameobject.GameObjType
Converts a string to the associated GameObjType.

T

takeDamage(double, char) - Method in class group1.model.gameobject.Jeff
Calculations for Jeff taking damage.
takeDamage(double, char) - Method in class group1.model.gameobject.LivingObj
Take damage, depleting hit points.
takesDamage() - Method in class group1.model.objectregion.ObjRegion
Returns true if this object takes damage, else false.
Terrain - Class in group1.model.gameobject.terrain
A GameObj that represents unmoving, solid ground.
Terrain() - Constructor for class group1.model.gameobject.terrain.Terrain
Default constructor.
Terrain(double, double, double, double, PictureList) - Constructor for class group1.model.gameobject.terrain.Terrain
Constructor.
Terrain(double, double, PictureList) - Constructor for class group1.model.gameobject.terrain.Terrain
Constructor, with position defaulted to (0, 0).
test1() - Static method in class group1.GameTest
 
TheAdventuresOfJeff - Class in group1
The master class for group 1's project -- "The Adventures of Jeff." Runs the entire game.
THICKNESS - Static variable in class group1.model.gameobject.GameObj
The thickness of a standard ObjRegion.
timeClick() - Method in class group1.model.Environment
Calculates and sets the positions and velocities of all objects in the environment, based upon the objects' own movements and hit detection.
timeClick() - Static method in class group1.model.gameobject.InvincibilityHandler
Run a time click of invincibility counters.
TimeClickReturn - Enum in group1.model
The enumerated type for the return value of Environment time clicks.
Tomahawk - Class in group1.model.gameobject.projectile
 
Tomahawk(double, double, PictureList) - Constructor for class group1.model.gameobject.projectile.Tomahawk
Standard factory constructor.
tomahawkDamageMultiplier - Variable in class group1.model.gameobject.LivingObj
The multiplier for weakness/resistance to tomahawk damage.
TOP_SIDE - Static variable in class group1.model.objectregion.ObjRegion
Specifies that this region is on the top side of the game object.

U

unpause() - Method in class group1.view.audio.AudioChannel
Unpause the audio.
unpauseAll() - Method in class group1.view.audio.AudioFacade
Unpause all audio channels.
unpauseChannel(AudioChannel) - Method in class group1.view.audio.AudioFacade
Unpause the specified audio channel.
updateGameObj(GameObj) - Method in class group1.view.Sprite
This methods takes the gameObj parameter and figures how which/if any private fields need to be changed/updated
updatePosition(XYPair) - Method in class group1.view.GamePanel
Updates the scrolling offset

V

VALID_WEAPON_CODES - Static variable in class group1.model.gameobject.LivingObj
List of all valid weapon codes, each a single character.
valueOf(String) - Static method in enum group1.model.EnvironmentList
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.model.gameobject.Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.model.gameobject.GameObjState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.model.gameobject.GameObjType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.model.gameobject.LadderDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.model.TimeClickReturn
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.view.audio.Audio
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum group1.view.audio.AudioType
Returns the enum constant of this type with the specified name.
values() - Static method in enum group1.model.EnvironmentList
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.model.gameobject.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.model.gameobject.GameObjState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.model.gameobject.GameObjType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.model.gameobject.LadderDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.model.TimeClickReturn
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.view.audio.Audio
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum group1.view.audio.AudioType
Returns an array containing the constants of this enum type, in the order they are declared.
velocity - Variable in class group1.model.gameobject.GameObj
The velocity.
View - Class in group1.view
 
View() - Constructor for class group1.view.View
Default constructor acceptingGameEvent is set to false
View(Game) - Constructor for class group1.view.View
Constructor with a game parameter.
viewListening - Variable in class group1.model.ModelListener
 

W

walkAcceleration() - Method in class group1.model.gameobject.enemy.Enemy
The acceleration while walking.
walkSpeed() - Method in class group1.model.gameobject.enemy.Enemy
The default walk speed.
wasActionHit() - Method in class group1.control.Controller
Whether or not the action key was hit.
wasDownHit() - Method in class group1.control.Controller
Whether or not the down key was hit.
wasJumpHit() - Method in class group1.control.Controller
Whether or not the jump key was hit.
wasLeftHit() - Method in class group1.control.Controller
Whether or not the left key was hit.
wasRightHit() - Method in class group1.control.Controller
Whether or not the right key was hit.
wasSelectHit() - Method in class group1.control.Controller
Whether or not the select key was hit.
wasStartHit() - Method in class group1.control.Controller
Whether or not the start key was hit.
wasUpHit() - Method in class group1.control.Controller
Whether or not the up key was hit.
WeaponSwitchMenu - Class in group1.view.menus
 
WeaponSwitchMenu() - Constructor for class group1.view.menus.WeaponSwitchMenu
The WeaponSwitchMenu Constructor
WeaponSwitchMenuEvent - Class in group1.model.gameevent
 
WeaponSwitchMenuEvent(int) - Constructor for class group1.model.gameevent.WeaponSwitchMenuEvent
 
WeaponSwitchMenuListener - Class in group1.view.modelListeners
 
WeaponSwitchMenuListener(View) - Constructor for class group1.view.modelListeners.WeaponSwitchMenuListener
The Constructor
WelcomeMenu - Class in group1.view.menus
 
WelcomeMenu(Controller) - Constructor for class group1.view.menus.WelcomeMenu
The WelcomeMenu Constructor
word_contains_suffix(String, String) - Static method in class group1.model.MyUtilities
 

X

XYPair - Class in group1.model
A simple class to hold a pair of doubles that represent x and y values.
XYPair() - Constructor for class group1.model.XYPair
Default constructor.
XYPair(double, double) - Constructor for class group1.model.XYPair
Normal constructor.

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