A B C D E F G H I K L M N P R S T U W

A

A1 - Static variable in class EarthMon
The name of the first attack
A1 - Static variable in class ElectricMon
The name of the first attack
A1 - Static variable in class FireMon
The name of the first attack
A1 - Static variable in class GasMon
The name of the first attack
A1 - Static variable in class WaterMon
The name of the first attack
A2 - Static variable in class EarthMon
The name of the second attack
A2 - Static variable in class ElectricMon
The name of the second attack
A2 - Static variable in class FireMon
The name of the second attack
A2 - Static variable in class GasMon
The name of the second attack
A2 - Static variable in class WaterMon
The name of the second attack
A3 - Static variable in class EarthMon
The name of the third attack
A3 - Static variable in class ElectricMon
The name of the third attack
A3 - Static variable in class FireMon
The name of the third attack
A3 - Static variable in class GasMon
The name of the third attack
A3 - Static variable in class WaterMon
The name of the third attack
A4 - Static variable in class EarthMon
The name of the fourth attack
A4 - Static variable in class ElectricMon
The name of the fourth attack
A4 - Static variable in class FireMon
The name of the fourth attack
A4 - Static variable in class GasMon
The name of the fourth attack
A4 - Static variable in class WaterMon
The name of the fourth attack
A5 - Static variable in class EarthMon
The name of the fifth attack
A5 - Static variable in class ElectricMon
The name of the fifth attack
A5 - Static variable in class FireMon
The name of the fifth attack
A5 - Static variable in class GasMon
The name of the fifth attack
A5 - Static variable in class WaterMon
The name of the fifth attack
A6 - Static variable in class EarthMon
The name of the sixth attack
A6 - Static variable in class ElectricMon
The name of the sixth attack
A6 - Static variable in class FireMon
The name of the sixth attack
A6 - Static variable in class GasMon
The name of the sixth attack
A6 - Static variable in class WaterMon
The name of the sixth attack
actionPerformed(ActionEvent) - Method in class Game
Handle Button clicks to load, start a new game, etc.
activeMon - Variable in class People
The index of the active Monster
addAttack(String) - Method in class EarthMon
Adds the attack specified by its name as parameter att to the Monster if it has less than Monster.MAXATTACKS
addAttack(String) - Method in class ElectricMon
Adds the attack specified by its name as parameter att to the Monster if it has less than Monster.MAXATTACKS
addAttack(String) - Method in class FireMon
Adds the attack specified by its name as parameter att to the Monster if it has less than Monster.MAXATTACKS
addAttack(String) - Method in class GasMon
Adds the attack specified by its name as parameter att to the Monster if it has less than Monster.MAXATTACKS
addAttack(String) - Method in class Monster
Learn the attack specifid by attack
addAttack(String) - Method in class WaterMon
Adds the attack specified by its name as parameter att to the Monster if it has less than Monster.MAXATTACKS
addBadge(String) - Method in class Player
Adds the badge to the Player.
addBattleEndListener(BattleEndListener) - Method in class Battle
Adds a BattleEndListener to be informed.
addBattleListener(BattleListener) - Method in class Grid
Add a class to be notified of Battles
addGameOverListener(GameOverListener) - Method in class Battle
Adds a GameOverListener to be informed.
addItem() - Method in class Item
Adds another of this.
addItem(Item) - Method in class People
Adds the Item specified to this.
addMonster(Monster) - Method in class People
Adds a Monster to this, either to the hand or to home if the hand has more than this.MAXMON
addMonsterHome(Monster) - Method in class People
Adds a Monster to the Home collection
addRedirectListener(RedirectListener) - Method in class Grid
Add a class to be notified of Battles
addSaveListener(SaveListener) - Method in class Shop
Add a Class to fire SaveEvent into
addShopEndListener(ShopEndListener) - Method in class Shop
Add a Class to fire ShopEndEvents into
ai - Variable in class Person
The AI to control movement around the Grid
allowMonsterOnMap(int) - Method in class Grid
Allow wild Monsters of type m on this.
Attack - class Attack.
Defines an ADT for Attacks.
Attack(String, double) - Constructor for class Attack
Constructs a new Attack with name and power.
attacks - Variable in class Monster
The attacks this knows
AttacksFullException - exception AttacksFullException.
If the Moster has Monster.MAXATTACKS throws this.
AttacksFullException(String, Attack) - Constructor for class AttacksFullException
Construct a new this.
attp - Variable in class Monster
The Attack Of this
ATTUP - Static variable in class PotionItem
The Attack Up subBrand Identifier

B

badge - Variable in class Trainer
The name of the badge
battle - Variable in class Monster
tru iff battling
Battle - class Battle.
Defines the battling arena.
BATTLE_ENDED - Static variable in class BattleEndEvent
The UID for this Event
BATTLE_STARTED - Static variable in class BattleEvent
The UID of this Event
battle() - Method in class People
Begins a battle with this, sets battle to true.
Battle(Player, MapObject) - Constructor for class Battle
Construct a Battle between Player and the MapObject.
Battle(Player, MapObject, ImageMap[]) - Constructor for class Battle
Construct a Battle between Player and the MapObject using images in the ImageMap.
BattleAI - class BattleAI.
Simple AI to determine the best course of attack/Item use/Monster switch based on the two battling Monsters.
BattleAI() - Constructor for class BattleAI
 
battleBegin(BattleEvent) - Method in interface BattleListener
The method to override.
battleBegin(BattleEvent) - Method in class Game
Handle a battleBegin Event, ie pause Grid, display the Battle system and move the MapObjects between the two.
battleEnd(BattleEndEvent) - Method in interface BattleEndListener
The method to override.
battleEnd(BattleEndEvent) - Method in class Game
Handle a battleEnd Event, ie unpause Grid, display the Grid system, destroy Battle system and move the MapObjects between the two.
BattleEndEvent - class BattleEndEvent.
Simple implementation of the Battle Ending.
BattleEndListener - interface BattleEndListener.
The Interface for BattleEndEvent.
BattleEvent - class BattleEvent.
The BattleEvent for when Battle's start
BattleListener - interface BattleListener.
The Interface for BattleEvent.
battling - Variable in class People
True if in a battle, with Player or Person
beat() - Method in class People
Defeat this, ie sets beaten to true.
beaten - Variable in class People
True if has beed beaten by the Player
beginBattleWithPlayer(MapObject) - Method in class Grid
Call to begin a battle with th Player, fires the events.
behind - Static variable in class People
The MapObject to paint this on top of
bimg - Static variable in class Person
The four Images to paint corresponding to the four directions
bimg - Static variable in class Player
The four Images to paint corresponding to the four directions
bimg - Static variable in class Trainer
The Images associated with the Four directions, Up, Left, Down, Right/
brand - Variable in class Item
The brand of Item this is.
Building - class Building.
Simple non-enterable MapObject used to denote a building's roof.
BUILDING - Static variable in class MapObject
Type Building
Building() - Constructor for class Building
Construct a new Building

C

canBeEntered() - Method in class MapObject
return true if can be entered, ie Grass, Floor.
canMove(int, int) - Method in class Grid
Determines if the Location specified can be moved into

D

DAMAGE1 - Static variable in class Attack
The Damage associated with the first Attack learned (A1)
DAMAGE2 - Static variable in class Attack
The Damage associated with the second Attack learned (A2)
DAMAGE3 - Static variable in class Attack
The Damage associated with the third Attack learned (A3)
DAMAGE4 - Static variable in class Attack
The Damage associated with the fourth Attack learned (A4)
DAMAGE5 - Static variable in class Attack
The Damage associated with the fifth Attack learned (A5)
DAMAGE6 - Static variable in class Attack
The Damage associated with the sixth Attack learned (A6)
DAMAGEMULT - Static variable in class Attack
The Multiplier to use if the Monster is a weak type against the other Monster
DEFAULTNUM - Static variable in class Grid
The default number of Rows/COlumns
defp - Variable in class Monster
The Defense Of this
DEFUP - Static variable in class PotionItem
The Defense Up subBrand Identifier
destroy() - Method in class Grid
Destroy all threads tied to this by setting their Grid Objects to null.
dir - Variable in class People
The direction facing as specified in Grid
dlg - Variable in class People
The dialogue to present when in Battle
DOWN - Static variable in class Grid
Down direction

E

EARTH - Static variable in class Monster
Earth kind
EarthMon - class EarthMon.
A class to define the Monsters of type Earth handles the leveling up process and naming of attacks.
EarthMon() - Constructor for class EarthMon
Construct a Earth Monster with the default values: name is Alligatrix level is two.
EarthMon(String) - Constructor for class EarthMon
Constructs a Earth Monster with the name name.
ELECTRIC - Static variable in class Monster
Electric kind
ElectricMon - class ElectricMon.
A class to define the Monsters of type Electric handles the leveling up process and naming of attacks.
ElectricMon() - Constructor for class ElectricMon
Construct a Electric Monster with the default values: name is Alligatrix level is two.
ElectricMon(String) - Constructor for class ElectricMon
Constructs a Electric Monster with the name name.
EmptyLocationException - exception EmptyLocationException.
Defines an Exception if there is an empty, default MapObject, on the Grid square inspected.
EmptyLocationException(String) - Constructor for class EmptyLocationException
Simple constructor for EmptyLocationException
enterable - Variable in class MapObject
true iff can be entered, ie Grass, Floor
equals(Attack) - Method in class Attack
Compares the Attack to this.
equals(ImageMap) - Method in class ImageMap
Determine Equality of this and the ImageMap im.
equals(Item) - Method in class Item
Determines if there is equality
equals(Monster) - Method in class Monster
Tests for equality, ie if all the parameters are the same
equals(Object) - Method in class Attack
Compares the Object to this.
equals(Object) - Method in class ImageMap
Determine Equality of this and the Object o.
equals(Object) - Method in class Item
Determines if there is equality
equals(Object) - Method in class Monster
Tests for equality
equals(String, boolean) - Method in class ImageMap
Determine Equality of this and the String specified.
exp - Variable in class Monster
The Experience Of this

F

fillGrid() - Method in class Grid
Fills the Grid in a standard manner, useful for debugging.
fillMonsters() - Method in class Grid
Removes the older wild Monsters, and add new ones randomly from th selection allowed.
fin - Variable in class MapLoader
true iff finished Constructing the Grid
fin - Variable in class PlayerLoader
Finished marker
fin - Variable in class PlayerSaver
True iff Finished, false otherwise
finishFight(Monster) - Method in class Monster
Finish the fight with the opposing Monster, ie give this the requisite experience
FIRE - Static variable in class Monster
Fire kind
FireMon - class FireMon.
A class to define the Monsters of type Fire handles the leveling up process and naming of attacks.
FireMon() - Constructor for class FireMon
Construct a Fire Monster with the default values: name is Alligatrix level is two.
FireMon(String) - Constructor for class FireMon
Constructs a Fire Monster with the name name.
Floor - class Floor.
Simple class to define another default MapObject, ie it is enterable by People.
FLOOR - Static variable in class MapObject
Type Floor
Floor() - Constructor for class Floor
Construct a new Floor, can be Entered, and has type of MapObject.FLOOR

G

g - Variable in class MapLoader
The Grid constructing
g - Variable in class Trainer
The Grid I am on
Game - class Game.
Main class to handle the switching between game modes, and initiation of the game.
GAME_OVER - Static variable in class GameOverEvent
The UID
Game() - Constructor for class Game
 
gameOver(GameOverEvent) - Method in class Game
Handle a GameOver Event, ie display the Game Over splash and offer the player the option to rebegin.
gameOver(GameOverEvent) - Method in interface GameOverListener
The method to override.
GameOverEvent - class GameOverEvent.
Simple event to let Game know there was a loss.
GameOverListener - interface GameOverListener.
Simple Interface for GameOverEvents
GAS - Static variable in class Monster
Gas kind
GasMon - class GasMon.
A class to define the Monsters of type Gas handles the leveling up process and naming of attacks.
GasMon() - Constructor for class GasMon
Construct a Gas Monster with the default values: name is Alligatrix level is two.
GasMon(String) - Constructor for class GasMon
Constructs a Gas Monster with the name name.
getA1() - Method in class EarthMon
Returns the name of Attack A1
getA1() - Method in class ElectricMon
Returns the name of Attack A1
getA1() - Method in class FireMon
Returns the name of Attack A1
getA1() - Method in class GasMon
Returns the name of Attack A1
getA1() - Method in class Monster
Gets the name of the first Attack
getA1() - Method in class WaterMon
Returns the name of Attack A1
getA2() - Method in class EarthMon
Returns the name of Attack A2
getA2() - Method in class ElectricMon
Returns the name of Attack A2
getA2() - Method in class FireMon
Returns the name of Attack A2
getA2() - Method in class GasMon
Returns the name of Attack A2
getA2() - Method in class Monster
Gets the name of the second Attack
getA2() - Method in class WaterMon
Returns the name of Attack A2
getA3() - Method in class EarthMon
Returns the name of Attack A3
getA3() - Method in class ElectricMon
Returns the name of Attack A3
getA3() - Method in class FireMon
Returns the name of Attack A3
getA3() - Method in class GasMon
Returns the name of Attack A3
getA3() - Method in class Monster
Gets the name of the third Attack
getA3() - Method in class WaterMon
Returns the name of Attack A3
getA4() - Method in class EarthMon
Returns the name of Attack A4
getA4() - Method in class ElectricMon
Returns the name of Attack A4
getA4() - Method in class FireMon
Returns the name of Attack A4
getA4() - Method in class GasMon
Returns the name of Attack A4
getA4() - Method in class Monster
Gets the name of the fourth Attack
getA4() - Method in class WaterMon
Returns the name of Attack A4
getA5() - Method in class EarthMon
Returns the name of Attack A5
getA5() - Method in class ElectricMon
Returns the name of Attack A5
getA5() - Method in class FireMon
Returns the name of Attack A5
getA5() - Method in class GasMon
Returns the name of Attack A5
getA5() - Method in class Monster
Gets the name of the fifth Attack
getA5() - Method in class WaterMon
Returns the name of Attack A5
getA6() - Method in class EarthMon
Returns the name of Attack A6
getA6() - Method in class ElectricMon
Returns the name of Attack A6
getA6() - Method in class FireMon
Returns the name of Attack A6
getA6() - Method in class GasMon
Returns the name of Attack A6
getA6() - Method in class Monster
Gets the name of the sixth Attack
getA6() - Method in class WaterMon
Returns the name of Attack A6
getActiveMonster() - Method in class People
Gets the index of the Active Monster.
getAttack() - Method in class AttacksFullException
Gets the offending Attack.
getAttack() - Method in class Monster
Gets the Attack Points of this.
getAttack(int) - Method in class Monster
Gets the Attack known at the specified position
getAttacks() - Method in class Monster
Gets the array of attacks available to this, adds null if less then Monster.MAXATTACKS
getBadge() - Method in class Trainer
Gets the name of the Badge carried.
getBadgeCount() - Method in class Player
Gets the number of Badges acquired.
getBehind() - Method in class People
Gets the MapObject standing on
getBrand() - Method in class Item
Gets the Brand of this.
getClone() - Method in class Building
Returns a clone of this.
getClone() - Method in class EarthMon
Returns a new Earth Monster with the same name as this.
getClone() - Method in class ElectricMon
Returns a new Electric Monster with the same name as this.
getClone() - Method in class FireMon
Returns a new Fire Monster with the same name as this.
getClone() - Method in class Floor
Returns a clone of this
getClone() - Method in class GasMon
Returns a new Gas Monster with the same name as this.
getClone() - Method in class Grass
Returns a clone of this.
getClone() - Method in class MapObject
return a clone of this
getClone() - Method in class Person
Returns a clone of this having the same name, behind and direction facing.
getClone() - Method in class Player
Returns a default Player as a MapObject
getClone() - Method in class Redirect
returns a clone of this
getClone() - Method in class Rock
Returns a clone of this.
getClone() - Method in class Trainer
Returns a clone of this, a Trainer with the same name and direction facing.
getClone() - Method in class Wall
Returns a duplicate of this.
getClone() - Method in class WaterMon
Returns a new Water Monster with the same name as this.
getDefault() - Method in class MapLoader
Gets the deafult MapObject for the GridConstructed
getDefense() - Method in class Monster
Gers the defense of this
getDialogue() - Method in class People
Gets the dialogue associated with this
getDirection() - Method in class People
Gets the direction facing
getExperience() - Method in class Monster
Gets the Experience of this
getGrid() - Method in class MapLoader
Get the Grid Constructed
getHP() - Method in class Monster
Gets the HP of this
getI() - Method in class Location
Returns the i of this.
getImage() - Method in class ImageMap
Gets the Image of this
getItem() - Method in class ItemChangeException
Returns the Item to use
getItem(String) - Method in class People
Gets the Item corresponding to the name specified.
getItemCount() - Method in class Item
Gets the number of this there is
getItemCount(String) - Method in class People
Gets the number of Item this has.
getItems() - Method in class People
Gets an array of Strings of the Item that the Player is currently carrying
getJ() - Method in class Location
Returns the j of this.
getKind() - Method in class Monster
Gets the Kind of this
getLevel() - Method in class Monster
Gets the level of this
getMapName() - Method in class RedirectEvent
Returns the filename for the new map.
getMapTo() - Method in class Redirect
Gets the map to load.
getMaxAttack() - Method in class Monster
Gets the Maximum Attack Points of this
getMaxDefense() - Method in class Monster
Gets the Maximum Defense
getMaxExperience() - Method in class Monster
Gets the Maximum Experience Pointsup
getMaxHP() - Method in class Monster
Gets the maximum hp
getMaxLevel() - Method in class Monster
Gets the Max level
getMoney() - Method in class People
Gets the amount of Money carried.
getMonster(int) - Method in class People
Gets the Monster from the hand at the specified index, ignoring Monsters that have no HP.
getMonsterAtHome(int) - Method in class People
Gets the Monster from home at the specified index, ignoring Monsters that have no HP.
getMonsterAttacks(int) - Method in class People
Gets an array of String for the Attacks available for the Monster at index p, ignoring the Monsters with no HP.
getMonsters() - Method in class People
Gets an array of Strings of the Monsters that the Player is currently carrying, ignoring those with no HP.
getName() - Method in class Attack
Get the name associated with the Attack.
getName() - Method in class ImageMap
Gets the name of this Image
getName() - Method in class Item
Gets the name of this Item.
getName() - Method in class Monster
Gets the name of this.
getName() - Method in class People
Gets the name of this.
getNewMonster() - Method in class MonsterChangeException
Gets the position of the New Monster
getNumberBadgesRequired() - Method in class Redirect
Gets the number of badges required to use this.
getNumberOfAttacks() - Method in class Monster
Gets the number of attacks this knows.
getNumberOfMonsters() - Method in class People
Gets the number of Monsters in the hand that do not have 0 hp.
getNumberOfMonstersAtHome() - Method in class People
Gets the number of Monsters at home that do not have 0 hp.
getNumColumns() - Method in class Grid
Gets the number of columns
getNumRows() - Method in class Grid
Gets the number of rows.
getOpponent() - Method in class BattleEvent
Returns the Opponent of the Player
getOriginalMonster() - Method in class MonsterChangeException
Gets the position of the Original Monster
getPerferredSize() - Method in class Grid
Returns the preferred size of this.
getPlayer() - Method in class BattleEndEvent
Get the Player in this
getPlayer() - Method in class BattleEvent
Returns the Player of this
getPlayer() - Method in class Grid
Gets the Player of this.
getPlayer() - Method in class PlayerLoader
Gets the Player created
getPlayer() - Method in class RedirectEvent
Returns the Player to be placed on the new map.
getPlayer() - Method in class SaveEvent
Returns the Player to be saved.
getPlayer() - Method in class ShopEndEvent
Returns the Player in this.
getPower() - Method in class Attack
Gets the power of the Attack
getSubBrand() - Method in class Item
Gets the subBrand of this defined in PotionItem and MonsterBallItem
getSubBrand() - Method in class MonsterBallItem
Gets the subBrand of this
getSubBrand() - Method in class PotionItem
Returns the type of Item this is.
getType() - Method in class MapObject
Gets the type associated with this.
Grass - class Grass.
Simple enterable MapObject.
GRASS - Static variable in class MapObject
Type Grass
Grass() - Constructor for class Grass
Default Constructor to define type and enterable.
Grid - class Grid.
Class for displaying the map and handling the Player Movements.
Grid() - Constructor for class Grid
Construct a new Grid of size Grid.DEFAULTNUM

H

hasBadge(String) - Method in class Player
Determines if the Player has the badge already.
healAllMonsters() - Method in class People
Heals all Monster to full HP, Attack Points, and Defense Points
hmon - Variable in class People
The Monsters caught, and not able to be used, ie in the Pepole's home collection
hp - Variable in class Monster
The HP Of this
HPUPFULL - Static variable in class PotionItem
The HP Up full subBrand Identifier
HPUPHALF - Static variable in class PotionItem
The HP Up half subBrand Identifier
HPUPTHIRD - Static variable in class PotionItem
The HP Up third subBrand Identifier

I

ImageMap - class ImageMap.
Simple class to associate an Image with a Name.
ImageMap(String, Image) - Constructor for class ImageMap
Construct a new ImageMap with the name and Image specified.
img - Static variable in class Building
The Image of this.
img - Static variable in class Floor
The Image to display
img - Static variable in class Grass
The image to display
img - Static variable in class Person
The four Images to paint corresponding to the four directions
img - Static variable in class Player
The four Images to paint corresponding to the four directions
img - Static variable in class Redirect
The Image to display
img - Static variable in class Rock
The Image for the Rock
img - Static variable in class Trainer
The Images associated with the Four directions, Up, Left, Down, Right/
img - Static variable in class Wall
The Image to display in with calls to paint
init() - Method in class Game
Starts the game displaying the default Splash Screen to the user.
init() - Method in class Grid
Initialize the Grid, ie start the Peopl Moving, and fill this with wild Monsters
initGrid() - Method in class Game
Get the Grid ready to be redisplayed after it was removed, ie add the Monsters.
InvalidFileFormatException - exception InvalidFileFormatException.
Defines an Exception if the mml/pml file is improperly formatted.
InvalidFileFormatException(String) - Constructor for class InvalidFileFormatException
Simple constructor for InvalidFileFormatException
InvalidLocationException - exception InvalidLocationException.
Defines an Exception if the Location specified is not a valid Location on the Grid
InvalidLocationException(String) - Constructor for class InvalidLocationException
Simple constructor for EmptyLocationException
InvalidPowerException - exception InvalidPowerException.
Defines an Exception if the power specifed is not a power defined in Attack.
InvalidPowerException(String) - Constructor for class InvalidPowerException
Simple constructor for InvalidPowerException
isBattling() - Method in class Monster
Returns true iff battling
isBattling() - Method in class People
Gets if this is in a Battle
isBeaten() - Method in class People
Determine if this has been beaten.
isChar(int) - Method in class MapLoader
Returns true iff c is between A and Z case insensitive
isChar(int) - Method in class PlayerLoader
Returns true iff is between A and Z case-insensitive.
isEnterable() - Method in class People
Returns false, as this cannot be entered
isPeopleInDirection(int, int, int, int) - Method in class Grid
Returns the MapObject in the direction specified within the distance specified from the i, j specified.
isValidLocation(int, int) - Method in class Grid
Determines if the Location specified is a valid on this.
Item - class Item.
Abstract class to represent an Item.
Item() - Constructor for class Item
 
ItemChangeException - exception ItemChangeException.
Defines an Exception if the Opponent in Battle/BattleAI wishes to use an Item.
ItemChangeException(Item) - Constructor for class ItemChangeException
Simple constructor for ItemChangeException
items - Variable in class People
The Items bought.

K

kind - Variable in class Monster
The kind of Monster this is

L

lastAttack - Variable in class EarthMon
The last attack learned (2 <= x <= 5)
lastAttack - Variable in class ElectricMon
The last attack learned (2 <= x <= 5)
lastAttack - Variable in class FireMon
The last attack learned (2 <= x <= 5)
lastAttack - Variable in class GasMon
The last attack learned (2 <= x <= 5)
lastAttack - Variable in class WaterMon
The last attack learned (2 <= x <= 5)
LEFT - Static variable in class Grid
Left direction
level - Variable in class Monster
The level of this
levelUp() - Method in class EarthMon
Preforms a level up on the Monster, Adds new Attacks if needed, increases HP, Attack Points, etc.
levelUp() - Method in class ElectricMon
Preforms a level up on the Monster, Adds new Attacks if needed, increases HP, Attack Points, etc.
levelUp() - Method in class FireMon
Preforms a level up on the Monster, Adds new Attacks if needed, increases HP, Attack Points, etc.
levelUp() - Method in class GasMon
Preforms a level up on the Monster, Adds new Attacks if needed, increases HP, Attack Points, etc.
levelUp() - Method in class Monster
Preforms a level up increasing attack, defense, and hp.
levelUp() - Method in class WaterMon
Preforms a level up on the Monster, Adds new Attacks if needed, increases HP, Attack Points, etc.
limg - Static variable in class Person
The four Images to paint corresponding to the four directions
limg - Static variable in class Player
The four Images to paint corresponding to the four directions
limg - Static variable in class Trainer
The Images associated with the Four directions, Up, Left, Down, Right/
loadPlayerFile(String) - Method in class Game
Handle the loading of a Player file.
Location - class Location.
Simple class to define an i, j position on a Grid.
Location(int, int) - Constructor for class Location
Construct a new Location with the i, j position.
locationOf(MapObject) - Method in class Grid
Gets the Location of the specified MapObject, uses equals(Object o).
los - Static variable in class PersonAI
How far to be able to see in the direction I am facing

M

main(String[]) - Static method in class PlayerSaver
Testing the Methods.
MapLoader - class MapLoader.
Class to construct the Grid as specified in a mml file.
MapLoader(BufferedReader) - Constructor for class MapLoader
Construct a new MapLoader using the BufferedReader specified.
MapObject - class MapObject.
Super class of all Objects on the Grid
MapObject() - Constructor for class MapObject
 
mapObjectAt(int, int) - Method in class Grid
Gets the MapObject at i, j.
MASTER - Static variable in class MonsterBallItem
Master MonsterBall subBrand
MAX_EARN_ATTACK_LEVEL - Static variable in class EarthMon
The level at which all attacks have been learned
MAX_EARN_ATTACK_LEVEL - Static variable in class ElectricMon
The level at which all attacks have been learned
MAX_EARN_ATTACK_LEVEL - Static variable in class FireMon
The level at which all attacks have been learned
MAX_EARN_ATTACK_LEVEL - Static variable in class GasMon
The level at which all attacks have been learned
MAX_EARN_ATTACK_LEVEL - Static variable in class WaterMon
The level at which all attacks have been learned
maxAtt - Variable in class Monster
The Maximum Attack Of this at this level
MAXATTACKS - Static variable in class Monster
The Maximum number of attack to have
maxDef - Variable in class Monster
The Maximum Defense Of this at this level
maxExp - Variable in class Monster
The Maximum Experience before a level up
maxHP - Variable in class Monster
The Maximum HP Of this, ie full health
maxLevel - Variable in class Monster
The Maximum level before learning a new attack
MAXLEVEL - Static variable in class Monster
The Maximum level allowed for Monsters to have
MAXMON - Variable in class People
The Maximum number of Monsters to cary
mon - Variable in class People
The Monsters caught, and able to be used, ie in the Pepole's hand
money - Variable in class People
The amount of money carrying
Monster - class Monster.
Class to define a Monster and its attributes.
MONSTER - Static variable in class MapObject
Type Monster
Monster() - Constructor for class Monster
 
MONSTERBALL - Static variable in class Item
Brand of MonsterBall
MonsterBallItem - class MonsterBallItem.
Simple class for an Item used to catch Monsters
MonsterBallItem(String, int) - Constructor for class MonsterBallItem
Construct a MonsterBallItem based upon name and subBrand.
MonsterChangeException - exception MonsterChangeException.
Defines an Exception if the Opponent in Battle/BattleAI wishes to change Monsters.
MonsterChangeException(int, int) - Constructor for class MonsterChangeException
Simple constructor for MonsterChangeException
move(int) - Method in class PersonAI
Move the Person in the direction specified.
moveMapObjectTo(int, int, int, int) - Method in class Grid
Moves the MapObject at i, j to ni, nj.
moveMe() - Method in class PersonAI
Handle the actual Moving, based on a RNG
movePlayerTo(int) - Method in class Grid
Moves the Player in the direction specified

N

name - Variable in class Item
The name of this Item
name - Variable in class Monster
The name of this
name - Variable in class People
The name of this
NonEmptyException - exception NonEmptyException.
Defines an Exception if the Location specified is filled by an MapObject, ie not the Default MapObject.
NonEmptyException(String) - Constructor for class NonEmptyException
Simple constructor for NonEmptyException
NORMAL - Static variable in class MonsterBallItem
Normal MonsterBall subBrand
numBadgesReq - Variable in class Redirect
The Number of Badges required before can be used
number - Variable in class Item
The number amount of this that the People has.
numi - Variable in class Grid
The number of rows
numj - Variable in class Grid
The number of columns

P

paint(Graphics) - Method in class Battle
Draws the Battle screen system with Monsters, Health bars, and Menus
paint(Graphics) - Method in class Building
Draw the MapObject.
paint(Graphics) - Method in class Floor
Draws the Floor
paint(Graphics) - Method in class Game
Draw the Components
paint(Graphics) - Method in class Grass
Draws the Grass.
paint(Graphics) - Method in class Grid
Draws the components of this
paint(Graphics) - Method in class Monster
Draws this for the Grid.
paint(Graphics) - Method in class Person
Draws the image for this based upon the direction.
paint(Graphics) - Method in class Player
Draws the Player using the Images passed into setImage.
paint(Graphics) - Method in class Redirect
Draws the redirector.
paint(Graphics) - Method in class Rock
Draws the Rock by paint the Image.
paint(Graphics) - Method in class Shop
Draw the Shop, and handle selection highlighting
paint(Graphics) - Method in class Trainer
Draws the image associated with Trainer, and the MapObject this is on.
paint(Graphics) - Method in class Wall
Paints the image of the Wall.
People - class People.
Class to define People, the superclass of Person, Player and Trainer.
People() - Constructor for class People
 
peopleNextTo(int, int) - Method in class Trainer
Determines the Player that is next to this, that are within one square any direction including diagonally.
Person - class Person.
Class to define a NPC, carries Monsters, and Items.
PERSON - Static variable in class MapObject
Type Person
Person() - Constructor for class Person
Construct a default Player, Name of NPC No Money No Monsters No Items No Badges No Dialogue Standing on Grass Facing up
Person(int) - Constructor for class Person
Construct a default Player, Name of NPC No Money No Monsters No Items No Badges No Dialogue Standing on Grass Facing as specified
Person(MapObject) - Constructor for class Person
Construct a default Player, Name of NPC No Money No Monsters No Items No Badges No Dialogue Standing on MapObject specified Facing up
Person(MapObject, int) - Constructor for class Person
Construct a default Player, Name of NPC No Money No Monsters No Items No Badges No Dialogue Standing on MapObject specified Facing as specified
Person(String) - Constructor for class Person
Construct a default Player, Name as specified No Money No Monsters No Items No Badges No Dialogue Standing on Grass Facing up
Person(String, MapObject, int) - Constructor for class Person
Construct a default Player, Name as specified No Money No Monsters No Items No Badges No Dialogue Standing on MapObject specified Facing as specified
PersonAI - class PersonAI.
Class used to move a NPC around the Grid.
PersonAI(Person) - Constructor for class PersonAI
Tie this to a Person to control.
pi - Variable in class Grid
The position of the player, the row/i
pj - Variable in class Grid
The position of the player, the column/j
Player - class Player.
Class to define a Player, carries Monsters, Items and Badges.
PLAYER - Static variable in class MapObject
Type Player
Player() - Constructor for class Player
Construct a default Player, Name of Player1 No Money No Monsters No Items No Badges Standing on Grass Facing up
Player(int) - Constructor for class Player
Construct a default Player, Name of Player1 No Money No Monsters No Items No Badges Standing on Grass Facing dir
Player(MapObject) - Constructor for class Player
Construct a default Player, Name of Player1 No Money No Monsters No Items No Badges Standing on MapObject specified Facing up
Player(MapObject, int) - Constructor for class Player
Construct a default Player, Name of Player1 No Money No Monsters No Items No Badges Standing on the MapObject specifid Facing the direction specified
Player(String) - Constructor for class Player
Construct a Player, Name as specified No Money No Monsters No Items No Badges Standing on Grass Facing up
Player(String, MapObject, int) - Constructor for class Player
Construct a default Player, Name as specified No Money No Monsters No Items No Badges Standing on as specified Facing as specified
PlayerLoader - class PlayerLoader.
Class to load a Player from a pml file.
PlayerLoader(BufferedReader) - Constructor for class PlayerLoader
Construct a new PlayerLoader using the BufferedReader specified.
PlayerSaver - class PlayerSaver.
Defines the output of a pml from a Player
PlayerSaver(Player) - Constructor for class PlayerSaver
Start creating the pml file based on the Player specified.
POTION - Static variable in class Item
Brand of Potion
PotionItem - class PotionItem.
Class to define the Potions, HP Up's, Attack Up's, and Defense Up's.
PotionItem(String, int) - Constructor for class PotionItem
Create a new PotionItem with the specified name, and subBrand.
processBadge(BufferedReader, Player) - Method in class PlayerLoader
Handles the Badge for the Player
processBlocker(BufferedReader) - Method in class MapLoader
Handle the Blocker
processBuilding(BufferedReader) - Method in class MapLoader
Handle the Building
processEvent(AWTEvent) - Method in class Battle
Process the events passed to this.
processEvent(AWTEvent) - Method in class Grid
Handle the Events.
processEvent(AWTEvent) - Method in class Shop
Handle Events that are passed into this.
processItemForVector(BufferedReader) - Method in class MapLoader
Handle the Item
processItemForVector(BufferedReader) - Method in class PlayerLoader
Handles the Item for the Item Vector
processItemVector(BufferedReader, People) - Method in class MapLoader
Handle the Item Vector
processItemVector(BufferedReader, Player) - Method in class PlayerLoader
Handles the Item Vector of the Player
processMonster(BufferedReader) - Method in class MapLoader
Handle the Monster
processMonster(BufferedReader) - Method in class PlayerLoader
Handles the Monster for the Monster Vector
processMonstersAllowed(BufferedReader) - Method in class MapLoader
Handles the Monsters Allowed
processMonsterVector(BufferedReader, People) - Method in class MapLoader
Handle the Monster Vector
processMonsterVector(BufferedReader, Player, boolean) - Method in class PlayerLoader
Handles the Monster Vector of the Player
processPerson(BufferedReader, boolean) - Method in class MapLoader
Handle the Person
processPlayer(BufferedReader) - Method in class MapLoader
Handle the Player
processRedirect(BufferedReader) - Method in class MapLoader
Handle the Redirect

R

recommendMonsterAttack(Monster, Monster) - Static method in class BattleAI
Recommends the best Attack corresponding for the Monster
recommendPlayerAttack(People, Player) - Static method in class BattleAI
Recommends the best Attack corresponding for the People against the Player
Redirect - class Redirect.
Class to define the Redirectors to direct to other maps.
REDIRECT - Static variable in class MapObject
Type Redirect
REDIRECT_FIRED - Static variable in class RedirectEvent
the UID
Redirect() - Constructor for class Redirect
Default constructor, sets Map to Load to Saphire.
Redirect(String) - Constructor for class Redirect
Create a new Redirector pointing to the map specified.
RedirectEvent - class RedirectEvent.
Simple Event to tell Game to load a new Map.
redirectFired(RedirectEvent) - Method in class Game
Handle a redirect event, ie load the new map specified in the RedirectEvent.
redirectFired(RedirectEvent) - Method in interface RedirectListener
The method to override.
RedirectListener - interface RedirectListener.
Simple Interface to listen to RedirectEvents
removeAllObjects() - Method in class Grid
Remove All Objects from the Grid.
removeBattleListener(BattleEndListener) - Method in class Battle
Removes a BattleEndListener to not be informed anymore.
removeBattleListener(BattleListener) - Method in class Grid
Removes a class that was being notified.
removeGameOverListener(GameOverListener) - Method in class Battle
Removes a GameOverListener to stop being informed.
removeObject(int, int) - Method in class Grid
Removes and returns the MapObject at the specified Location
removeRedirectListener(RedirectListener) - Method in class Grid
Removes a class that was being notified.
removeSaveListener(SaveEvent) - Method in class Shop
Removes a Class to fire SaveEvent into
removeShopListener(ShopEndListener) - Method in class Shop
Removes a Class to fire ShopEndEvents into
repaint(int, int) - Method in class Grid
Repaint the Location specified.
RIGHT - Static variable in class Grid
Right direction
rimg - Static variable in class Person
The four Images to paint corresponding to the four directions
rimg - Static variable in class Player
The four Images to paint corresponding to the four directions
rimg - Static variable in class Trainer
The Images associated with the Four directions, Up, Left, Down, Right/
Rock - class Rock.
Simple class to define a non-enterable MapObject that is used for Grass Backgrounds.
ROCK - Static variable in class MapObject
Type Rock
Rock() - Constructor for class Rock
Construct a Rock Object
run() - Method in class PersonAI
Move this around the Grid, and sleep a random amount of time.
run() - Method in class Trainer
Check if there is a Player to battle, and sleep for one second between checks.

S

SAVE_GAME - Static variable in class SaveEvent
The UID of SaveEvent
SaveEvent - class SaveEvent.
Event fired when Player chooses to save his informaiont.
saveGame(SaveEvent) - Method in class Game
Handle a SaveGame Event, ie take the Player specified in SaveEvent and pass it to PlayerSaver then place this text in a TextArea for the user to save it.
saveGame(SaveEvent) - Method in interface SaveListener
Method needed to override to handle Event
SaveListener - interface SaveListener.
The Interface of SaveEvents
setActiveMonster(int) - Method in class People
Sets the ActiveMonster for this.
setAttack(int) - Method in class Monster
Sets the Attack points of this
setBadge(String) - Method in class Trainer
Sets the name of the badge carried by the Trainer.
setBehind(MapObject) - Method in class Monster
Sets the MapObject to paint where this is.
setBehind(MapObject) - Method in class People
Sets the MapObject to paint behind
setBehind(MapObject) - Method in class Redirect
Sets the MapObject that this is over.
setDefault(MapObject) - Method in class Grid
Sets the default backdrop to display.
setDefense(int) - Method in class Monster
Sets the defense of this
setDialogue(String) - Method in class People
Sets the dialogue associated with this
setDirection(int) - Method in class People
Sets the directio of this as specified in Grid
setExperience(int) - Method in class Monster
Sets the Experience Pints and levels up if needed.
setFile(BufferedReader) - Method in class MapLoader
Sets the BufferedReader used to process the file, and begins processing.
setGrid(Grid) - Method in class Person
Sets th Grid for the PersonAI to use, and initiates the PersonAI.
setGrid(Grid) - Method in class PersonAI
Set the Grid, set to null to kill the thread.
setGrid(Grid) - Method in class Trainer
Sets the Grid that this is on, and starts the Thread for checking if a Player enters the sight of this.
setHP(int) - Method in class Monster
Sets the hp
setI(int) - Method in class Location
Sets the i of this.
setImage(Image[]) - Method in class Building
Sets the Image to be displayed for this.
setImage(Image[]) - Method in class EarthMon
Empty implemntation unneeded as Monsters are only displayed in battle
setImage(Image[]) - Method in class ElectricMon
Empty implemntation unneeded as Monsters are only displayed in battle
setImage(Image[]) - Method in class FireMon
Empty implemntation unneeded as Monsters are only displayed in battle
setImage(Image[]) - Method in class Floor
Sets the image to be painted.
setImage(Image[]) - Method in class GasMon
Empty implemntation unneeded as Monsters are only displayed in battle
setImage(Image[]) - Method in class Grass
Sets the image to display.
setImage(Image[]) - Method in class MapObject
Sets the image to display.
setImage(Image[]) - Method in class Person
Sets the Image for this.
setImage(Image[]) - Method in class Player
Sets the Image for this.
setImage(Image[]) - Method in class Redirect
Sets the image to paint.
setImage(Image[]) - Method in class Rock
Sets the Image to be used for the Rock.
setImage(Image[]) - Method in class Trainer
Sets the static Image for this class.
setImage(Image[]) - Method in class Wall
Sets the static Image associated with Wall.
setImage(Image[]) - Method in class WaterMon
Empty implemntation unneeded as Monsters are only displayed in battle
setItemCount(int) - Method in class Item
Sets the number of this there is.
setJ(int) - Method in class Location
Returns the j of this.
setLevel(int) - Method in class Monster
Sets the level of this.
setLocation(int, int) - Method in class Location
Set the i, j of this.
setLocation(Location) - Method in class Location
Copies the i, j into this.
setMapTo(String) - Method in class Redirect
Sets the map to load.
setMaxAttack(int) - Method in class Monster
Sets the Maximum Attack Points of this
setMaxDefense(int) - Method in class Monster
Sets the Maximum defense of this
setMaxExperience(int) - Method in class Monster
Sets the maximum Experience of this, the amount required before a level up
setMaxHP(int) - Method in class Monster
Sets the maximum hp
setMaxLevel(byte) - Method in class EarthMon
Sets the max level always is START + previousMaxLevel
setMaxLevel(byte) - Method in class ElectricMon
Sets the max level always is START + previousMaxLevel
setMaxLevel(byte) - Method in class FireMon
Sets the max level always is START + previousMaxLevel
setMaxLevel(byte) - Method in class GasMon
Sets the max level always is START + previousMaxLevel
setMaxLevel(byte) - Method in class WaterMon
Sets the max level always is START + previousMaxLevel
setMoney(int) - Method in class People
Sets the amount of Money carried.
setMonsterLevel(int) - Method in class Grid
Sets the wild Monsters level for this
setName(String) - Method in class Item
Sets the name of this Item.
setName(String) - Method in class Monster
Sets the name of this Monster
setName(String) - Method in class People
Sets the name of this.
setName(String) - Method in class Trainer
Sets the name of the Trainer.
setNumberBadgesRequired(int) - Method in class Redirect
Sets the number of Badges required to use this.
setObjectAt(MapObject, int, int) - Method in class Grid
Sets the object at the Location specified
setPlayer(Player) - Method in class Grid
Sets the Player of this.
setUpImages() - Method in class Game
Load all the required Images and instantiate the classes that depend on them.
Shop - class Shop.
Defines the Shop where the Player can buy Items, Save Heal his Monsters, and Switch Monsters from Home to his Hand.
SHOP_ENDED - Static variable in class ShopEndEvent
The constant associated with this event, must be unique in package/AWTEvent
Shop(Player, Image) - Constructor for class Shop
Construct a Shop Object with a Player and an Image.
shopEnd(ShopEndEvent) - Method in class Game
Handle a shopEnd Event, ie display the Shop, and move Player between the two
shopEnd(ShopEndEvent) - Method in interface ShopEndListener
What to do when ShopEndEvent is fired.
ShopEndEvent - class ShopEndEvent.
Event for when Player leaves the Shop.
ShopEndListener - interface ShopEndListener.
Interface for when the Player leaves the Shop.
START - Static variable in class EarthMon
The number of levels needed before learning a new attack
START - Static variable in class ElectricMon
The number of levels needed before learning a new attack
START - Static variable in class FireMon
The number of levels needed before learning a new attack
START - Static variable in class GasMon
The number of levels needed before learning a new attack
START - Static variable in class WaterMon
The number of levels needed before learning a new attack
startBattle() - Method in class Monster
Starts a fight
startReading() - Method in class MapLoader
Starts the processing of the file.
startReading() - Method in class PlayerLoader
Starts reading from the file.
stopBattle() - Method in class Monster
Stop a fight
stopBattle() - Method in class People
Ends a battle with this, sets battle to false.
substituteAttack(Attack, Attack) - Method in class EarthMon
Removes an Attack and adds a new Attack to the end.
substituteAttack(Attack, Attack) - Method in class ElectricMon
Removes an Attack and adds a new Attack to the end.
substituteAttack(Attack, Attack) - Method in class FireMon
Removes an Attack and adds a new Attack to the end.
substituteAttack(Attack, Attack) - Method in class GasMon
Removes an Attack and adds a new Attack to the end.
substituteAttack(Attack, Attack) - Method in class Monster
Substitute one Attack for another.
substituteAttack(Attack, Attack) - Method in class WaterMon
Removes an Attack and adds a new Attack to the end.
switchMonster(Monster, Monster) - Method in class People
Switches a Monster from Home collection to the Hand collection.

T

toString() - Method in class PlayerSaver
Gets the pml created from the Player.
Trainer - class Trainer.
Implementation of a Trainer, a Person with a Badge, and not able to move around the Grid.
TRAINER - Static variable in class MapObject
Type Trainer
Trainer() - Constructor for class Trainer
Constructs a default Trainer No money, Grass as behind MapObject Name of NPC Badge of Name No Monsters No Dialogue
Trainer(int) - Constructor for class Trainer
Constructs a Trainer facing in direction dir No money, Grass as behind MapObject Name of NPC Badge of Name No Monsters No Dialogue
Trainer(MapObject) - Constructor for class Trainer
Constructs a Trainer with MapObject underneath No money, Name of NPC Badge of Name No Monsters No Dialogue
Trainer(MapObject, int) - Constructor for class Trainer
Constructs a Trainer with MapObject underneath and facing dir.
Trainer(String) - Constructor for class Trainer
Constructs a Trainer with Name name.
Trainer(String, MapObject, int) - Constructor for class Trainer
Constructs a Trainer with Name name, Standing on behind, and facing dir.
type - Variable in class MapObject
The type of this

U

UP - Static variable in class Grid
Up direction
update(Graphics) - Method in class Grid
Overriden to rmove the flickering effect
update(Graphics) - Method in class Shop
Overriden to only call paint without first painting a background first, removes the flicker effect
useItem(Item, Monster) - Method in class People
Uses the Item specified on the Monster specified
useItem(Monster) - Method in class Item
Uses the item on the Monster Specified
useItem(Monster) - Method in class MonsterBallItem
Attempts to use the MonsterBall on the Monster.
useItem(Monster) - Method in class PotionItem
Use this on the specified Monster

W

Wall - class Wall.
Simple class to define a Wall, a non-enterable MapObject for levels that use the Floor as the backdrop.
WALL - Static variable in class MapObject
Type Wall
Wall() - Constructor for class Wall
Create a new Wall Object.
WATER - Static variable in class Monster
Water kind
WaterMon - class WaterMon.
A class to define the Monsters of type Water handles the leveling up process and naming of attacks.
WaterMon() - Constructor for class WaterMon
Construct a Water Monster with the default values: name is Alligatrix level is two.
WaterMon(String) - Constructor for class WaterMon
Constructs a Water Monster with the name name.

A B C D E F G H I K L M N P R S T U W