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

A

A_CENTER - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Centered on the visible area
A_CENTER - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Centered on the visible area
A_E - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: East
A_E - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: East
A_N - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: North
A_N - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: North
A_NE - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Northeast
A_NE - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Northeast
A_NW - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Northwest
A_NW - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Northwest
A_S - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: South
A_S - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: South
A_SE - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Southeast
A_SE - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Southeast
A_SW - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Southwest
A_SW - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Southwest
A_TILE - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Tiled across the visible area
A_TILE - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Tiled across the visible area
A_W - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: West
A_W - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: West
A_ZOOM - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Alignment: Zoomed to fill the visible area
A_ZOOM - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Alignment: Zoomed to fill the visible area
ABOUT - Static variable in class mdh.hephaestus2.Global
 
acceptExtension(String) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
actionPerformed(ActionEvent) - Method in class mdh.hephaestus2.Editor
Handles action events from menus - users should not call this method!
actionPerformed(ActionEvent) - Method in class mdh.hephaestus2.Game
Handles action events from menus - users should not call this method!
actionPerformed(ActionEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
actionPerformed(ActionEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
actionPerformed(ActionEvent) - Method in class mdh.hephaestus2.gamelib.Application
Handles action events, including those generated by bound keys.
add(Image, int, String) - Method in class mdh.hephaestus2.gamelib.IconList
Adds a new line at the end of the list.
add(int) - Method in class mdh.hephaestus2.containers.IntStack
pushes 'val' onto the top of the stack, where it can be retrieved with pop() and peek(), or just data_[ size()-1 ]
add(Sprite) - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Adds a sprite to the group.
add(String) - Method in class mdh.hephaestus2.gamelib.IconList
 
addActionListener(ActionListener) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
addActionListener(ActionListener) - Method in class mdh.hephaestus2.gamelib.IconList
 
addComponent(Component) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
addGrid(Component, int, int, Container, GridBagLayout, GridBagConstraints) - Method in class mdh.hephaestus2.Game
 
addGroup(SpriteGroup) - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Adds a sprite group which will be drawn when the screen is redrawn.
addHelpMenu(String) - Method in class mdh.hephaestus2.gamelib.Application
Starts a new help menu.
addItemListener(ItemListener) - Method in class mdh.hephaestus2.gamelib.IconList
 
addLayoutComponent(Component, Object) - Method in class mdh.hephaestus2.gamelib.StackLayout2
Remembers that this one has a non-default position.
addLayoutComponent(String, Component) - Method in class mdh.hephaestus2.gamelib.StackLayout2
implements LayoutManager
addMenu(String) - Method in class mdh.hephaestus2.gamelib.Application
Starts a new normal menu.
addMenuItem(String, String, int, int) - Method in class mdh.hephaestus2.gamelib.Application
Adds a menu item with a hotkey to the current menu.
addMenuSeparator() - Method in class mdh.hephaestus2.gamelib.Application
Adds a menu separator to the current menu.
addNotify() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
addNotify() - Method in class mdh.hephaestus2.gamelib.IconList
 
addNotify() - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
addPlayer(Player) - Method in class mdh.hephaestus2.World
Adds a Player to the active players list.
addPrompt(String, String, Component) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
addPrompt(String, String, Component, boolean) - Method in class mdh.hephaestus2.gamelib.MetaDialog
Adds a 'prompt' component, with an optional text label to its left.
addText(String) - Method in class mdh.hephaestus2.gamelib.MetaDialog
Adds a line of text to the component.
addToolbar(String, String, int, int, Container, GridBagLayout, GridBagConstraints) - Method in class mdh.hephaestus2.Game
 
adjustmentValueChanged(AdjustmentEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
Messages from the scrollbar
adjustmentValueChanged(AdjustmentEvent) - Method in class mdh.hephaestus2.gamelib.IconList
Messages from the scrollbar
Adventure - class mdh.hephaestus2.Adventure.
All Hephaestus adventures must be subclasses of Adventure, and implement the newGame() method to set up the adventure.
Adventure() - Constructor for class mdh.hephaestus2.Adventure
 
alert(double, double, String, String, String, int, int, String) - Method in class mdh.hephaestus2.gamelib.Application
Shows an alert box, and returns the index (0-based) of the button pressed.
ALIGN_NAME - Static variable in class mdh.hephaestus2.gamelib.ImagePanel
Text equivalents of the constants above.
ALIGN_NAME - Static variable in class mdh.hephaestus2.gamelib.SpriteScreen
Text equivalents of the constants above.
ALT - Static variable in class mdh.hephaestus2.gamelib.Application
 
Application - class mdh.hephaestus2.gamelib.Application.
GUI framework - holds a Screen and optional menu bar and status line (the latter two are created on demand), and provides a slew of basic services.
Application(String) - Constructor for class mdh.hephaestus2.gamelib.Application
 
Application(String, ActionListener) - Constructor for class mdh.hephaestus2.gamelib.Application
 
atoi(String, int) - Static method in class mdh.hephaestus2.Global
Converts a string into an int.
Attack - Static variable in class mdh.hephaestus2.Global
Statistic indices.
audioCache() - Method in class mdh.hephaestus2.gamelib.Application
Returns the audio cache.

B

Back - Static variable in class mdh.hephaestus2.Global
Relative facings: (North + Right) % NDIRS = East, and so on.
beginAtomic() - Method in class mdh.hephaestus2.gamelib.IconList
Call beginAtomic() just before you want to make a whole bunch of changes, and it won't repaint or resize until you call endAtomic(); this can speed many operations up a few thousand times.
bindKey(String, int, int) - Method in class mdh.hephaestus2.gamelib.Application
Binds a key event to a given action command.
Block - class mdh.hephaestus2.Block.
A stationary object.
Block(String) - Constructor for class mdh.hephaestus2.Block
Creates a new Block.
BLOCKED - Static variable in class mdh.hephaestus2.MoveResult
For a move, indicates that the move is blocked, and you should be moved back to your previous position; for a non-move callback, it indicates failure.
Body - Static variable in class mdh.hephaestus2.Global
Statistic indices.
booleanValue() - Method in class mdh.hephaestus2.MoveResult
Returns true if the result is OKAY or NOMOVE, otherwise false.
BORDER - Static variable in class mdh.hephaestus2.MoveResult
For a move, indicates that you hit the border of a map; for a non-move callback, it's equivalent to BLOCKED.
BorderPanel - class mdh.hephaestus2.gamelib.BorderPanel.
A panel with a rectangular solid-colored border of varying width.
BorderPanel() - Constructor for class mdh.hephaestus2.gamelib.BorderPanel
Creates a new BorderPanel.
BorderPanel(LayoutManager) - Constructor for class mdh.hephaestus2.gamelib.BorderPanel
Creates a new BorderPanel with the given layout manager.
BRAIN_Avoid - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Callback - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Guard - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Hunt - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Program - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Random - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()
BRAIN_Static - Static variable in class mdh.hephaestus2.Creature
Brain types for setBrain()

C

calcSecondary() - Method in class mdh.hephaestus2.Statted
Calculates the secondary stats from the primary stats.
CENTER - Static variable in class mdh.hephaestus2.gamelib.StackLayout2
 
Charm - Static variable in class mdh.hephaestus2.Global
Statistic indices.
checkAlive(Stuff) - Method in class mdh.hephaestus2.Entity
Returns true if you're still alive, calls and returns die() if not.
choice(ArrayList) - Method in class mdh.hephaestus2.World
Returns a randomly selected item from a list, or null if the list is empty.
chooseItem(String, int) - Method in class mdh.hephaestus2.Player
Pops up a menu letting the Player choose a single item from: inventory if select=SELECT_ITEM, equipment if select=SELECT_EQUIP, or usable inventory items if select=SELECT_USE.
chooseTarget(ArrayList) - Method in class mdh.hephaestus2.Entity
Selects a single Entity from a list of targets.
chooseTarget(ArrayList) - Method in class mdh.hephaestus2.Player
 
clear() - Method in class mdh.hephaestus2.Editor
 
clear() - Method in class mdh.hephaestus2.Grid
Destroys everything in the grid.
clear() - Method in class mdh.hephaestus2.Map
Removes and destroys all contents of the map.
clear() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Erases the entire display.
clear() - Method in class mdh.hephaestus2.containers.IntStack
removes all elements from the stack
clear() - Method in class mdh.hephaestus2.containers.SparseArray
erase all contents of the SparseArray.
clear() - Method in class mdh.hephaestus2.containers.IntHash
erase all contents of the IntHash
clearGroups() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
 
click() - Method in class mdh.hephaestus2.gamelib.ImageButton
Performs a button click.
click(int) - Method in class mdh.hephaestus2.gamelib.IconList
 
clone() - Method in class mdh.hephaestus2.Props
 
clone() - Method in interface mdh.hephaestus2.LocationReadOnly
 
clone() - Method in class mdh.hephaestus2.containers.IntHash
 
cls() - Method in class mdh.hephaestus2.gamelib.Terminal
 
collide(Sprite, boolean) - Method in class mdh.hephaestus2.gamelib.Sprite
Returns true if this sprite collides with sprite b.
collide(SpriteGroup, boolean, boolean, boolean) - Method in class mdh.hephaestus2.gamelib.SpriteGroup
 
contains(int) - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
 
contains(int) - Method in class mdh.hephaestus2.containers.IntStack
 
contains(Object) - Method in class mdh.hephaestus2.containers.SparseArray
 
contains(Object) - Method in class mdh.hephaestus2.containers.IntHash
 
contains(Sprite) - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Returns true if the group contains the sprite.
containsKey(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
containsKey(int) - Method in class mdh.hephaestus2.containers.IntHash
 
containsKey(String) - Method in class mdh.hephaestus2.Props
Returns true if the key is defined.
copyItem() - Method in class mdh.hephaestus2.Item
Makes an exact duplicate of this Item.
countItems() - Method in class mdh.hephaestus2.Player
Returns the number of items carried, including equipment.
Creature - class mdh.hephaestus2.Creature.
Any non-player entity, whether friendly or hostile.
Creature(String) - Constructor for class mdh.hephaestus2.Creature
Creates a new Creature with the given name.
CTRL - Static variable in class mdh.hephaestus2.gamelib.Application
 

D

d(int) - Method in class mdh.hephaestus2.World
Rolls one 's'-sided die and returns the roll.
d(int, int) - Method in class mdh.hephaestus2.World
Rols 'n' 's'-sided dice and returns the total.
d(String) - Method in class mdh.hephaestus2.World
Rolls a "die text" in the form 1d6, 2d8+3, 3d10+-3, 1d6*5+2.
DAMAGE_EXP - Static variable in class mdh.hephaestus2.Global
Award for causing damage to someone else, currently 1 * damage done.
decr(String) - Method in class mdh.hephaestus2.Props
Decrements an int property by 1.
DEFAULT_CAPACITY - Static variable in class mdh.hephaestus2.containers.SparseArray
The default capacity, 13.
DEFAULT_COLS - Static variable in class mdh.hephaestus2.gamelib.Terminal
 
DEFAULT_FONTSIZE - Static variable in class mdh.hephaestus2.gamelib.Terminal
 
DEFAULT_LINES - Static variable in class mdh.hephaestus2.gamelib.Terminal
 
DEFAULT_LOADFACTOR - Static variable in class mdh.hephaestus2.containers.SparseArray
The default for loadFactor, 0.75.
Defense - Static variable in class mdh.hephaestus2.Global
Statistic indices.
destroy() - Method in class mdh.hephaestus2.Stuff
Removes this Stuff from the database.
die(Stuff) - Method in class mdh.hephaestus2.Entity
The Entity dies and is removed.
die(Stuff) - Method in class mdh.hephaestus2.Player
 
DIR_ABBV - Static variable in class mdh.hephaestus2.Global
One-letter lowercase text for each direction.
DIR_NAME - Static variable in class mdh.hephaestus2.Global
Lowercase text for each direction.
doAbout() - Method in class mdh.hephaestus2.Editor
 
doAddContents(String) - Method in class mdh.hephaestus2.Editor
 
doAddTerrain() - Method in class mdh.hephaestus2.Editor
 
doAttack() - Method in class mdh.hephaestus2.Entity
The Entity attacks a target ahead of it.
doCopyContents() - Method in class mdh.hephaestus2.Editor
 
doCutContents() - Method in class mdh.hephaestus2.Editor
 
doDeleteTerrain() - Method in class mdh.hephaestus2.Editor
 
doEditContents() - Method in class mdh.hephaestus2.Editor
 
doEditMap() - Method in class mdh.hephaestus2.Editor
 
doEditTerrain() - Method in class mdh.hephaestus2.Editor
 
doHelp() - Method in class mdh.hephaestus2.Editor
 
doLoad() - Method in class mdh.hephaestus2.Editor
 
doLoad(File) - Method in class mdh.hephaestus2.Editor
 
doMagic() - Method in class mdh.hephaestus2.Player
 
doMagic(String) - Method in class mdh.hephaestus2.Entity
Casts a "magic spell" (magic is also used for skills and other special abilities).
doMagicAttack(Entity, int, String, String) - Method in class mdh.hephaestus2.Entity
Performs a magical attack.
doMove(int) - Method in class mdh.hephaestus2.Entity
Tries to move the Entity in direction 'dir' with a speed equal to its current Speed score.
doMove(int, int) - Method in class mdh.hephaestus2.Entity
Tries to move the Entity in direction 'dir' with a given speed.
doMove(int, int) - Method in class mdh.hephaestus2.Player
 
doMoveMap(int) - Method in class mdh.hephaestus2.Editor
 
doNew() - Method in class mdh.hephaestus2.Editor
 
doPaste() - Method in class mdh.hephaestus2.Editor
 
doSave() - Method in class mdh.hephaestus2.Editor
 
doTrigger() - Method in class mdh.hephaestus2.Entity
Tries to trigger something in the same grid, and returns the callback result.
DoublePanel - class mdh.hephaestus2.gamelib.DoublePanel.
A double-buffered panel.
DoublePanel() - Constructor for class mdh.hephaestus2.gamelib.DoublePanel
Creates a new DoublePanel with the default FlowLayout layout manager.
DoublePanel(LayoutManager) - Constructor for class mdh.hephaestus2.gamelib.DoublePanel
Creates a new DoublePanel with the given layout manager.
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Draws the background image.
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.Terminal
 
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.DoublePanel
Override this to do your drawing on the offscreen buffer; you need do nothing else.
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.IconList
 
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.SpriteScreen
 
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Calls draw(g) on all sprites in the group.
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.Sprite
Draws the sprite image on a graphics context.
draw(Graphics2D) - Method in class mdh.hephaestus2.gamelib.Screen
 
drawImage(Graphics, int, int) - Method in class mdh.hephaestus2.gamelib.Icon
 
dropItem(Item) - Method in class mdh.hephaestus2.Player
Drops an item from the Player's inventory, after calling it.dropCallback.
DX - Static variable in class mdh.hephaestus2.Global
Deltas by direction.
dXX() - Method in class mdh.hephaestus2.World
Returns an open-ended die roll for stat checks.
DY - Static variable in class mdh.hephaestus2.Global
Deltas by direction.

E

East - Static variable in class mdh.hephaestus2.Global
Directions
Editor - class mdh.hephaestus2.Editor.
The Hephaestus map editor.
Editor() - Constructor for class mdh.hephaestus2.Editor
 
elements() - Method in class mdh.hephaestus2.containers.IntStack
 
elements() - Method in class mdh.hephaestus2.containers.SparseArray
Returns an Enumeration of the values in this SparseArray
elements() - Method in class mdh.hephaestus2.containers.IntHash
Returns an Enumeration of the values in this IntHash
elementsArray() - Method in class mdh.hephaestus2.containers.SparseArray
Produces an unsorted Object[] array of the elements stored herein, or a zero-length array if it is empty.
elementsArray() - Method in class mdh.hephaestus2.containers.IntHash
Produces an unsorted Object[] array of the elements stored herein, or a zero-length array if it is empty.
elementsCopy() - Method in class mdh.hephaestus2.containers.SparseArray
Returns an Enumeration of the values in this SparseArray, using a copy of the arrays, so you can continue to manipulate the SparseArray while enumerating.
elementsCopy() - Method in class mdh.hephaestus2.containers.IntHash
Returns an Enumeration of the values in this IntHash, using a copy of the arrays, so you can continue to manipulate the IntHash while enumerating.
endAtomic() - Method in class mdh.hephaestus2.gamelib.IconList
Don't forget to endAtomic() after making your changes, or it will never repaint again.
endMenus() - Method in class mdh.hephaestus2.gamelib.Application
Call at the end of all your menu creation to add the last menu and the menu bar.
ensureCapacity(int) - Method in class mdh.hephaestus2.containers.IntStack
Make sure there's room for at least 'size' elements in the stack.
ensureCapacity(int) - Method in class mdh.hephaestus2.containers.SparseArray
Resizes the hash bucket to hold at least newcap entries, before the loadFactor.
ensureCapacity(int) - Method in class mdh.hephaestus2.containers.IntHash
Resizes the hash buckets to hold at least newcap entries, before the loadFactor.
Entity - class mdh.hephaestus2.Entity.
Common code of any mobile entity - Creature and Player.
EQ_Accessory - Static variable in class mdh.hephaestus2.Global
Equipment positions.
EQ_Armor - Static variable in class mdh.hephaestus2.Global
Equipment positions.
EQ_Hat - Static variable in class mdh.hephaestus2.Global
Equipment positions.
EQ_Shield - Static variable in class mdh.hephaestus2.Global
Equipment positions.
EQ_Weapon - Static variable in class mdh.hephaestus2.Global
Equipment positions.
equals(Object) - Method in interface mdh.hephaestus2.LocationReadOnly
 
equals(Object) - Method in class mdh.hephaestus2.gamelib.Icon
 
EQUIP_NAME - Static variable in class mdh.hephaestus2.Global
Text for each equipment position.
equipItem(Item) - Method in class mdh.hephaestus2.Player
Equips an item, after calling it.equipCallback.
Evade - Static variable in class mdh.hephaestus2.Global
Statistic indices.

F

facing() - Method in interface mdh.hephaestus2.LocationReadOnly
Returns the facing of this location.
FileBrowser - class mdh.hephaestus2.gamelib.FileBrowser.
A cross-platform file dialog.
FileBrowser(Frame, String, int, File) - Constructor for class mdh.hephaestus2.gamelib.FileBrowser
Creates a new FileBrowser.
fileDialog(String, boolean, String[]) - Method in class mdh.hephaestus2.gamelib.Application
Shows a custom file browser, and returns the File object selected, or null if the user hit cancel.
FILL - Static variable in class mdh.hephaestus2.gamelib.StackLayout2
 
fill(int, int, HashMap, String) - Method in class mdh.hephaestus2.Map
Fills in the terrain of the Map starting at 'x','y'.
findBlocking() - Method in class mdh.hephaestus2.Grid
Returns the first blocking Thing, or null if none of the contents are blocking.
findGrid() - Method in class mdh.hephaestus2.Thing
Returns the Grid this Thing is in, or null if not found.
findMap() - Method in class mdh.hephaestus2.Thing
Returns the Map this Thing is on, or null if not found.
findTerrain() - Method in class mdh.hephaestus2.Grid
Returns the Terrain object assigned to this Grid, or null if none.
first(String) - Static method in class mdh.hephaestus2.Global
Returns everything in a string up to the first space.
focusGained(FocusEvent) - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
focusGained(FocusEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
focusGained(FocusEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
focusLost(FocusEvent) - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
focusLost(FocusEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
focusLost(FocusEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 

G

game - Variable in class mdh.hephaestus2.Adventure
The Game instance.
Game - class mdh.hephaestus2.Game.
Main application of Hephaestus 2.
Game(String[]) - Constructor for class mdh.hephaestus2.Game
 
get(int) - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
 
get(int) - Method in class mdh.hephaestus2.containers.IntStack
 
get(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
get(int) - Method in class mdh.hephaestus2.containers.IntHash
 
getActionCommand() - Method in class mdh.hephaestus2.gamelib.ImageButton
Returns the command name of the action event fired by this button.
getActor(HashMap) - Method in class mdh.hephaestus2.Adventure
Returns the Stuff represented by "actorid" in args.
getAlign() - Method in class mdh.hephaestus2.gamelib.ImagePanel
Returns the current alignment.
getAlign() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Returns the current alignment.
getApplication() - Static method in class mdh.hephaestus2.gamelib.Application
 
getArg() - Method in class mdh.hephaestus2.MoveResult
Returns the arg - this should be null for all results except BLOCKED.
getAtomic() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getAttackCallback() - Method in class mdh.hephaestus2.Entity
Returns the callback that the Entity will call after every attack.
getAttackName() - Method in class mdh.hephaestus2.Entity
Returns the name of the Entity's attack, shown as "foo attacks you with ATTACKNAME".
getAudioClip(String) - Method in class mdh.hephaestus2.gamelib.Application
Returns a specified sound sample, stored in 'filename'.
getBasefile() - Method in class mdh.hephaestus2.Tile
Returns the base filename of the tile.
getBlocking() - Method in class mdh.hephaestus2.Stuff
Returns true if this Stuff will block movement.
getBoolean(int) - Method in class mdh.hephaestus2.containers.SparseArray
As get(), but tries to cast it to Boolean and then get the booleanValue.
getBoolean(String) - Method in class mdh.hephaestus2.Props
Returns a boolean value, or false if it is not defined.
getBorderCallback() - Method in class mdh.hephaestus2.Map
Returns the callback called when the player tries to enter the map border (the outermost grids on the map).
getBorderColor() - Method in class mdh.hephaestus2.gamelib.BorderPanel
Returns the color of the border, or the start-color of a gradient.
getBorderColor1() - Method in class mdh.hephaestus2.gamelib.BorderPanel
Returns the border gradient mid-color.
getBorderColor2() - Method in class mdh.hephaestus2.gamelib.BorderPanel
Returns the border gradient end-color.
getBorderWidth() - Method in class mdh.hephaestus2.gamelib.BorderPanel
Returns the width of the border.
getBounds() - Method in class mdh.hephaestus2.gamelib.Sprite
Returns a rectangle of the sprite's bounds.
getBrain() - Method in class mdh.hephaestus2.Creature
Returns the brain type.
getButton() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getByte(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getCapacity() - Method in class mdh.hephaestus2.containers.SparseArray
 
getChar(int) - Method in class mdh.hephaestus2.containers.SparseArray
As get(), but tries to cast it to Character and then get the charValue.
getColumns() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getDebug() - Method in class mdh.hephaestus2.Game
 
getDefeatCallback() - Method in class mdh.hephaestus2.Entity
Returns the function called when the Creature is killed by a Player.
getDir(int, int) - Static method in class mdh.hephaestus2.Global
Returns the direction represented by relative coordinates, or -1 if it is not a cardinal direction.
getDouble(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getDown() - Method in class mdh.hephaestus2.gamelib.ImageButton
Returns true if the button is depressed.
getDropCallback() - Method in class mdh.hephaestus2.Item
Returns the callback called when this item is dropped.
getEquip() - Method in class mdh.hephaestus2.Item
Returns the equipment position this item can be used in, or -1 for none.
getEquipCallback() - Method in class mdh.hephaestus2.Item
Returns the callback called when this item is equipped.
getEquipid(int) - Method in class mdh.hephaestus2.Player
Returns the id of the equipment at position 'pos', which is one of Global.EQ_*.
getExp() - Method in class mdh.hephaestus2.Entity
Returns the experience total of this Entity.
getFaction() - Method in class mdh.hephaestus2.Creature
 
getFaction() - Method in class mdh.hephaestus2.Entity
Returns which faction the Entity belongs to.
getFaction() - Method in class mdh.hephaestus2.Player
 
getFile() - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
getFilesFirst() - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
getFloat(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getFrame() - Method in class mdh.hephaestus2.Tile
Returns the current frame being displayed.
getGame() - Static method in class mdh.hephaestus2.Game
Returns the Game instance.
getGold() - Method in class mdh.hephaestus2.Statted
Returns the gold value of this object.
getGrid(int, int) - Method in class mdh.hephaestus2.Map
Returns the Grid at a given coord.
getHeight() - Method in class mdh.hephaestus2.Tile
Returns the height of the tile in pixels.
getIconFilename() - Method in class mdh.hephaestus2.Tile
Returns the filename of the north- (1 facing) or east-(2 or 4 facings) pointing image, for use as an icon.
getIconFilename() - Method in class mdh.hephaestus2.Thing
Returns the current pose's iconFilename.
getImage() - Method in class mdh.hephaestus2.gamelib.Icon
 
getImage() - Method in class mdh.hephaestus2.gamelib.Sprite
Returns the current image that represents the sprite.
getImage(int, int) - Method in class mdh.hephaestus2.Tile
Returns the image for a given facing and frame.
getImage(String) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Returns the Image for a given filename, or null if not found.
getImage(String) - Method in class mdh.hephaestus2.gamelib.Application
Returns a specified image, stored in 'filename' relative to docbase.
getInstance() - Static method in class mdh.hephaestus2.gamelib.Screen
 
getInt(int) - Method in class mdh.hephaestus2.containers.SparseArray
As get(), but tries to cast it to Number and then get the intValue.
getInt(String) - Method in class mdh.hephaestus2.Props
Returns an int value, or 0 if it is not defined.
getItem(int) - Method in class mdh.hephaestus2.gamelib.IconList
 
getItemCount() - Method in class mdh.hephaestus2.gamelib.IconList
 
getItems() - Method in class mdh.hephaestus2.Player
Returns a list of ids of items carried.
getLayoutAlignmentX(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
implements LayoutManager2
getLayoutAlignmentY(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
implements LayoutManager2
getLeader() - Method in class mdh.hephaestus2.World
Returns the first Player in the party; many actions apply to the leader first.
getLevel() - Method in class mdh.hephaestus2.Player
Returns the experience level of the Player.
getLine(int) - Method in class mdh.hephaestus2.gamelib.Terminal
 
getLines() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getLoadFactor() - Method in class mdh.hephaestus2.containers.SparseArray
 
getLong(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getMagic(String) - Method in class mdh.hephaestus2.Entity
Returns the callback assigned to the magic spell named 'name'.
getMaximumSize() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
getMaximumSize() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getMaximumSize() - Method in class mdh.hephaestus2.gamelib.IconList
 
getMaxsize() - Method in class mdh.hephaestus2.gamelib.Icon
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.ImagePanel
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.DoublePanel
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.IconList
 
getMinimumSize() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
 
getName() - Method in class mdh.hephaestus2.Stuff
Returns the name of this Stuff.
getName() - Method in class mdh.hephaestus2.gamelib.SpriteGroup
 
getName() - Method in class mdh.hephaestus2.gamelib.Sprite
 
getNContents() - Method in class mdh.hephaestus2.Grid
Returns the number of contents.
getNFacings() - Method in class mdh.hephaestus2.Tile
Returns the number of facings defined.
getNFrames() - Method in class mdh.hephaestus2.Tile
Returns the number of frames defined.
getNItems() - Method in class mdh.hephaestus2.Player
Returns the number of items carried.
getNMagic() - Method in class mdh.hephaestus2.Entity
Returns the number of "magic abilities" defined.
getNPlayers() - Method in class mdh.hephaestus2.World
Returns the number of Players in the party.
getNPoses() - Method in class mdh.hephaestus2.Thing
Returns the number of poses defined.
getNullString(String) - Method in class mdh.hephaestus2.Props
Returns a String value, or null if it is not defined or is empty.
getOpacity() - Method in class mdh.hephaestus2.Terrain
Returns the opacity of a Terrain, one of Global.OPA_*.
getOpacity() - Method in class mdh.hephaestus2.Grid
Returns the opacity level determined by the terrain and contents, one of Global.OPA_*.
getOpacity() - Method in class mdh.hephaestus2.Thing
Returns the opacity level of this Thing, one of Global.OPA_*.
getPlayer(int) - Method in class mdh.hephaestus2.World
Returns the 'i'th Player in the party.
getPlaying() - Method in class mdh.hephaestus2.World
Returns true if an adventure is loaded and the game is currently playing.
getPose() - Method in class mdh.hephaestus2.Thing
Returns the current pose of this Thing.
getPosition() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.ImageButton
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.ImagePanel
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.DoublePanel
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.IconList
 
getPreferredSize() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
 
getPrompt(String) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getProps() - Method in class mdh.hephaestus2.Thing
Returns the properties of this Thing, which may be null.
getRemoveCallback() - Method in class mdh.hephaestus2.Item
Returns the callback called when this item is removed (unequipped).
getResult() - Method in class mdh.hephaestus2.MoveResult
Returns the result code.
getRows() - Method in class mdh.hephaestus2.gamelib.IconList
 
getScaleIcons() - Method in class mdh.hephaestus2.gamelib.IconList
 
getSelectedIndex() - Method in class mdh.hephaestus2.gamelib.IconList
 
getSelectedItem() - Method in class mdh.hephaestus2.gamelib.IconList
 
getSelectedObjects() - Method in class mdh.hephaestus2.gamelib.IconList
 
getShort(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getStat(int) - Method in class mdh.hephaestus2.Statted
Returns the current value of stat 'i'.
getStatMax(int) - Method in class mdh.hephaestus2.Statted
Returns the normal maximum value of stat 'i'.
getStatus() - Method in class mdh.hephaestus2.gamelib.Application
Returns the text currently shown in the status line.
getStep() - Method in class mdh.hephaestus2.Creature
Returns the current step if brain is BRAIN_Program.
getString(int) - Method in class mdh.hephaestus2.containers.SparseArray
 
getString(String) - Method in class mdh.hephaestus2.Props
Returns a String value, or "" if it is not defined.
getStuff(int) - Method in class mdh.hephaestus2.World
Returns the Stuff with the given id, or null if it does not exist.
getStuff(int, int) - Method in class mdh.hephaestus2.World
Returns the Stuff with the given id only if it is of 'type' (one of Global.TYPE_*) or a subtype, otherwise null.
getTakeCallback() - Method in class mdh.hephaestus2.Item
Returns the callback called when this item is taken.
getTarget(HashMap) - Method in class mdh.hephaestus2.Adventure
Returns the Stuff represented by "targetid" in args.
getTerrain() - Method in class mdh.hephaestus2.Grid
Returns the ID of the terrain type.
getText() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
getText(String) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
getThinkCallback() - Method in class mdh.hephaestus2.Creature
Returns the callback to call if brain is BRAIN_Callback.
getTile() - Method in class mdh.hephaestus2.Thing
Returns the Tile for the current pose, or null if no poses have been defined.
getTile(int) - Method in class mdh.hephaestus2.Terrain
Returns the Tile for a given layer, one of Global.LAYER_*, or null if the tile has not been set.
getTopLine() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getTriggerCallback() - Method in class mdh.hephaestus2.Stuff
Returns the trigger callback of this Stuff.
getTurn() - Method in class mdh.hephaestus2.World
Returns the current game turn.
getTurnCallback() - Method in class mdh.hephaestus2.Entity
Returns the callback called on every turn.
getType() - Method in class mdh.hephaestus2.Item
 
getType() - Method in class mdh.hephaestus2.Block
 
getType() - Method in class mdh.hephaestus2.Creature
 
getType() - Method in class mdh.hephaestus2.Player
 
getType() - Method in class mdh.hephaestus2.Terrain
 
getType() - Method in class mdh.hephaestus2.Map
 
getType() - Method in class mdh.hephaestus2.Stuff
Returns the type constant for this object, one of Global.TYPE_*.
getVerifyQuit() - Method in class mdh.hephaestus2.gamelib.Application
Returns true if verifyQuit() should show a dialog box, false if it should just exit.
getVisibleGrid() - Method in class mdh.hephaestus2.Game
Returns the array of Grids visible on the View.
getVisibleIndex() - Method in class mdh.hephaestus2.gamelib.IconList
 
getVisibleLines() - Method in class mdh.hephaestus2.gamelib.Terminal
 
getVisibleLoc() - Method in class mdh.hephaestus2.Game
Returns the world location at the center of the View.
getWidth() - Method in class mdh.hephaestus2.Tile
Returns the width of the tile in pixels.
getWorld() - Static method in class mdh.hephaestus2.World
Returns the World instance.
getWorld() - Method in class mdh.hephaestus2.Game
 
Global - class mdh.hephaestus2.Global.
Constants and utility methods for Hephaestus 2.
Grid - class mdh.hephaestus2.Grid.
A single map square.

H

h() - Method in class mdh.hephaestus2.gamelib.Icon
 
HephaestusException - exception mdh.hephaestus2.HephaestusException.
Base exception class for errors generated in Hephaestus.
HephaestusException() - Constructor for class mdh.hephaestus2.HephaestusException
 
HephaestusException(String) - Constructor for class mdh.hephaestus2.HephaestusException
 
HephaestusException(String, Throwable) - Constructor for class mdh.hephaestus2.HephaestusException
 
HephaestusException(Throwable) - Constructor for class mdh.hephaestus2.HephaestusException
 
HitPoints - Static variable in class mdh.hephaestus2.Global
Statistic indices.
HOMEPAGE - Static variable in class mdh.hephaestus2.Global
URI of the Hephaestus home page.

I

Icon - class mdh.hephaestus2.gamelib.Icon.
An Icon is an image or part of an image.
ICON_ALERT - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_ATTACK - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_DEATH - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_DROP - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_EAST - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_EQUIP - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_ERROR - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_GAME - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_GET - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_GOLD - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_INV - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_MAGIC - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_NORTH - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_QUESTION - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_REMOVE - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_SOUTH - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_TEAST - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_TNORTH - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_TRIGGER - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_TSOUTH - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_TWEST - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_USE - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_WAIT - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_WAIT_SM - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
ICON_WEST - Static variable in class mdh.hephaestus2.Global
Filenames of the system icons.
Icon() - Constructor for class mdh.hephaestus2.gamelib.Icon
 
Icon(Image, int) - Constructor for class mdh.hephaestus2.gamelib.Icon
 
Icon(Image, int, int, int, int, int) - Constructor for class mdh.hephaestus2.gamelib.Icon
 
IconList - class mdh.hephaestus2.gamelib.IconList.
A scrolling list with an icon and a hotkey for each entry.
IconList() - Constructor for class mdh.hephaestus2.gamelib.IconList
calls IconList(8)
IconList(int) - Constructor for class mdh.hephaestus2.gamelib.IconList
 
ICONSIZE - Static variable in class mdh.hephaestus2.Global
 
id() - Method in class mdh.hephaestus2.Stuff
Returns the unique id of this Stuff.
ImageButton - class mdh.hephaestus2.gamelib.ImageButton.
 
ImageButton(Image) - Constructor for class mdh.hephaestus2.gamelib.ImageButton
 
imageCache() - Method in class mdh.hephaestus2.gamelib.Application
Returns the image cache.
ImagePanel - class mdh.hephaestus2.gamelib.ImagePanel.
A double-buffered panel with an image background.
ImagePanel() - Constructor for class mdh.hephaestus2.gamelib.ImagePanel
Creates a new ImagePanel.
ImagePanel(LayoutManager) - Constructor for class mdh.hephaestus2.gamelib.ImagePanel
Creates a new ImagePanel with the given layout manager.
inBounds(int, int) - Method in class mdh.hephaestus2.Map
Returns true if the coords are within 0..xsize-1,0..ysize-1
inCenter(int, int) - Method in class mdh.hephaestus2.Map
Returns true if the coords are within 1..xsize-2,1..ysize-2
incr(String) - Method in class mdh.hephaestus2.Props
Increments an int property by 1.
indexOf(int) - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
 
indexOf(int) - Method in class mdh.hephaestus2.containers.IntStack
 
indexOf(Object) - Method in class mdh.hephaestus2.containers.SparseArray
Finds a value that matches 'find' and returns the key.
indexOf(Object) - Method in class mdh.hephaestus2.containers.IntHash
Finds a value that matches 'find' and returns the key.
initProps() - Method in class mdh.hephaestus2.Thing
Returns the properties of this Thing, creating a new properties set if needed.
input(double, double, String, String, String, String) - Method in class mdh.hephaestus2.gamelib.Application
Shows a text input box, and returns the text entered, or null if the user hit Cancel.
insert(int, int) - Method in class mdh.hephaestus2.containers.IntStack
Inserts a value before position 'ins'.
insets() - Method in class mdh.hephaestus2.gamelib.BorderPanel
Deprecated. As of JDK version 1.1, replaced by getInsets().
IntEnumeration - interface mdh.hephaestus2.containers.IntEnumeration.
An enumeration that can return an int instead of an Object.
interrupt() - Method in class mdh.hephaestus2.gamelib.Screen
Stops the update/animation thread.
IntHash - class mdh.hephaestus2.containers.IntHash.
An IntHash is a linked-list hashtable using an int key rather than an object.
IntHash() - Constructor for class mdh.hephaestus2.containers.IntHash
Creates a new IntHash with a default size of DEFAULT_CAPACITY and loadFactor of DEFAULT_LOADFACTOR.
IntHash(int) - Constructor for class mdh.hephaestus2.containers.IntHash
Creates a new IntHash with a given capacity and default loadFactor of DEFAULT_LOADFACTOR.
IntHash(int, float) - Constructor for class mdh.hephaestus2.containers.IntHash
Creates an IntHash.
IntStack - class mdh.hephaestus2.containers.IntStack.
A dynamic array of int values, usable as a stack or a list.
IntStack() - Constructor for class mdh.hephaestus2.containers.IntStack
Creates a new stack with a starting size of 1 element.
IntStack(int) - Constructor for class mdh.hephaestus2.containers.IntStack
 
IntStackReadOnly - interface mdh.hephaestus2.containers.IntStackReadOnly.
A read-only interface to IntStack.
invalidateLayout(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
implements LayoutManager2
isDoubleBuffered() - Method in class mdh.hephaestus2.gamelib.DoublePanel
 
isEmpty() - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
 
isEmpty() - Method in class mdh.hephaestus2.containers.IntStack
 
isEmpty() - Method in class mdh.hephaestus2.containers.SparseArray
 
isFixedSize() - Method in class mdh.hephaestus2.gamelib.DoublePanel
 
isFocusable() - Method in class mdh.hephaestus2.gamelib.ImageButton
 
isFocusable() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
isFocusable() - Method in class mdh.hephaestus2.gamelib.Terminal
 
isFocusable() - Method in class mdh.hephaestus2.gamelib.DoublePanel
 
isFocusable() - Method in class mdh.hephaestus2.gamelib.IconList
 
isFocusTraversable() - Method in class mdh.hephaestus2.gamelib.ImageButton
 
isFocusTraversable() - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
isFocusTraversable() - Method in class mdh.hephaestus2.gamelib.Terminal
 
isFocusTraversable() - Method in class mdh.hephaestus2.gamelib.DoublePanel
This is deprecated in 1.4, but still necessary for 1.3 compatibility.
isFocusTraversable() - Method in class mdh.hephaestus2.gamelib.IconList
 
isFriendlyTo(Entity) - Method in class mdh.hephaestus2.Entity
Returns true if you are friendly to Entity 'en'.
isGoldCoins() - Method in class mdh.hephaestus2.Item
Returns true if the item has a name consisting of digits followed by " gold".
isType(int) - Method in class mdh.hephaestus2.Item
 
isType(int) - Method in class mdh.hephaestus2.Block
 
isType(int) - Method in class mdh.hephaestus2.Creature
 
isType(int) - Method in class mdh.hephaestus2.Entity
 
isType(int) - Method in class mdh.hephaestus2.Statted
 
isType(int) - Method in class mdh.hephaestus2.Player
 
isType(int) - Method in class mdh.hephaestus2.Terrain
 
isType(int) - Method in class mdh.hephaestus2.Map
 
isType(int) - Method in class mdh.hephaestus2.Stuff
Returns true if this class or any of its superclasses is of 'type', one of Global.TYPE_*.
isType(int) - Method in class mdh.hephaestus2.Thing
 
Item - class mdh.hephaestus2.Item.
Any portable Thing - usually used for equipment.
Item(String) - Constructor for class mdh.hephaestus2.Item
Creates a new item with the given name.
itemStateChanged(ItemEvent) - Method in class mdh.hephaestus2.Editor
 
itemStateChanged(ItemEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 

K

key() - Method in class mdh.hephaestus2.containers.KeyValue
 
keyPressed(KeyEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
keyPressed(KeyEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
keyPressed(KeyEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
keyPressed(KeyEvent) - Method in class mdh.hephaestus2.gamelib.Application
Handles keyboard input events - users should not call this method!
keyReleased(KeyEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
keyReleased(KeyEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
keyReleased(KeyEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
keyReleased(KeyEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
keys() - Method in class mdh.hephaestus2.Props
Returns an iterator over the list of keys.
keys() - Method in class mdh.hephaestus2.containers.SparseArray
Returns an Enumeration of the keys in this SparseArray, each wrapped in Integers.
keys() - Method in class mdh.hephaestus2.containers.IntHash
Returns an Enumeration of the keys in this IntHash, each wrapped in Integers.
keysArray() - Method in class mdh.hephaestus2.containers.SparseArray
Produces an unsorted int[] array of the keys stored herein, or a zero-length array if the SparseArray is empty.
keysArray() - Method in class mdh.hephaestus2.containers.IntHash
Produces an unsorted int[] array of the keys stored herein, or a zero-length array if the IntHash is empty.
keysCopy() - Method in class mdh.hephaestus2.containers.SparseArray
Returns an Enumeration of the keys in this SparseArray, using a copy of the arrays, so you can continue to manipulate the SparseArray while enumerating.
keysCopy() - Method in class mdh.hephaestus2.containers.IntHash
Returns an Enumeration of the keys in this IntHash, using a copy of the arrays, so you can continue to manipulate the IntHash while enumerating.
keyTyped(KeyEvent) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
keyTyped(KeyEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
keyTyped(KeyEvent) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
keyTyped(KeyEvent) - Method in class mdh.hephaestus2.gamelib.Application
Handles keyboard input events - users should not call this method!
KeyValue - class mdh.hephaestus2.containers.KeyValue.
KeyValue stores, as the name might possibly suggest, a key and a value.
KeyValue() - Constructor for class mdh.hephaestus2.containers.KeyValue
 
KeyValue(int, Object) - Constructor for class mdh.hephaestus2.containers.KeyValue
 
KeyValue(KeyValue) - Constructor for class mdh.hephaestus2.containers.KeyValue
 

L

lastIndexOf(int) - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
 
lastIndexOf(int) - Method in class mdh.hephaestus2.containers.IntStack
 
LAYER_NAME - Static variable in class mdh.hephaestus2.Global
Text for each layer.
LAYER_Over - Static variable in class mdh.hephaestus2.Global
Values for terrain layers.
LAYER_Under - Static variable in class mdh.hephaestus2.Global
Values for terrain layers.
layoutContainer(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
 
Left - Static variable in class mdh.hephaestus2.Global
Relative facings: (North + Right) % NDIRS = East, and so on.
LEFT - Static variable in class mdh.hephaestus2.gamelib.StackLayout2
 
length() - Method in class mdh.hephaestus2.gamelib.IconList
 
LEVEL_EXP - Static variable in class mdh.hephaestus2.Global
Base cost for each level in experience points, currently 1000.
listContents() - Method in class mdh.hephaestus2.Grid
Returns a ArrayList of the content Things.
listMagic() - Method in class mdh.hephaestus2.Entity
Returns an iterator over the list of "magic abilities".
listTargets(boolean, int) - Method in class mdh.hephaestus2.Entity
Returns a list of visible targets in a direct line forward, out to 'range' squares.
LOAD - Static variable in class mdh.hephaestus2.gamelib.FileBrowser
 
loadMap(File) - Static method in class mdh.hephaestus2.Map
Loads a Map from a file created by the map editor.
loc() - Method in class mdh.hephaestus2.Thing
Returns the current Location of the Thing.
LocationReadOnly - interface mdh.hephaestus2.LocationReadOnly.
A read-only interface to Location.

M

MAGIC_EXP - Static variable in class mdh.hephaestus2.Global
Award for casting a spell, currently 10 * current level.
MagicAbility - Static variable in class mdh.hephaestus2.Global
Statistic indices.
MagicDefense - Static variable in class mdh.hephaestus2.Global
Statistic indices.
MagicEvade - Static variable in class mdh.hephaestus2.Global
Statistic indices.
MagicPoints - Static variable in class mdh.hephaestus2.Global
Statistic indices.
main(String[]) - Static method in class mdh.hephaestus2.Editor
 
main(String[]) - Static method in class mdh.hephaestus2.Game
 
main(String[]) - Static method in class mdh.hephaestus2.gamelib.ImagePanel
Testing utility.
main(String[]) - Static method in class mdh.hephaestus2.gamelib.StackLayout2
 
main(String[]) - Static method in class mdh.hephaestus2.gamelib.MultiLabel
 
main(String[]) - Static method in class mdh.hephaestus2.gamelib.IconList
 
main(String[]) - Static method in class mdh.hephaestus2.gamelib.FileBrowser
 
makeButton(String, String) - Method in class mdh.hephaestus2.gamelib.Application
Creates a button with a title and command, and forces sane colors.
makeChoice() - Method in class mdh.hephaestus2.gamelib.FileBrowser
Creates a drop-down choice with sane colors.
makeChoice() - Method in class mdh.hephaestus2.gamelib.Application
Creates a drop-down choice with sane colors.
makeGold(int) - Static method in class mdh.hephaestus2.Item
Creates a new stack of gold coins.
makeInt(int) - Static method in class mdh.hephaestus2.Global
Returns an Integer representing an int, using cached objects for -256 to 256.
makeList(int) - Method in class mdh.hephaestus2.gamelib.Application
Creates a scrolling list with sane colors.
makeTextField(String) - Method in class mdh.hephaestus2.gamelib.Application
 
makeTextField(String, int) - Method in class mdh.hephaestus2.gamelib.FileBrowser
Creates a text field with sane colors.
makeTextField(String, int) - Method in class mdh.hephaestus2.gamelib.Application
Creates a text field with sane colors.
makeWhitePanel(Component) - Method in class mdh.hephaestus2.gamelib.FileBrowser
Creates a black-on-white panel with a single component maximized in it.
makeWhitePanel(Component) - Method in class mdh.hephaestus2.gamelib.Application
Creates a black-on-white panel with a single component maximized in it.
Map - class mdh.hephaestus2.Map.
A 2D map of Grids.
Map(String, int, int) - Constructor for class mdh.hephaestus2.Map
Creates a new map with the given name and size.
mapid() - Method in interface mdh.hephaestus2.LocationReadOnly
Returns the map id of this location.
MAX_ITEMS - Static variable in class mdh.hephaestus2.Player
Maximum number of items that may be carried.
maximumLayoutSize(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
implements LayoutManager2
MAXPLAYERS - Static variable in class mdh.hephaestus2.Global
Maximum number of Players allowed.
mdh.hephaestus2 - package mdh.hephaestus2
 
mdh.hephaestus2.containers - package mdh.hephaestus2.containers
 
mdh.hephaestus2.gamelib - package mdh.hephaestus2.gamelib
 
menu(double, double, String, String, ArrayList, IntStack, ArrayList, boolean, String) - Method in class mdh.hephaestus2.gamelib.Application
Shows a menu dialog, and returns the index (0-based) of the option selected, or null if the user hit Cancel.
MetaDialog - class mdh.hephaestus2.gamelib.MetaDialog.
A generalized input dialog.
MetaDialog(Frame, String, boolean, LayoutManager, int, String) - Constructor for class mdh.hephaestus2.gamelib.MetaDialog
 
MetaDialog(Frame, String, boolean, LayoutManager, int, String, int, int) - Constructor for class mdh.hephaestus2.gamelib.MetaDialog
Creates a new MetaDialog.
MIN_HEIGHT - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
MIN_WIDTH - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
Mind - Static variable in class mdh.hephaestus2.Global
Statistic indices.
minimumLayoutSize(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
 
mouseClicked(MouseEvent) - Method in class mdh.hephaestus2.Editor
 
mouseClicked(MouseEvent) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
mouseClicked(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseClicked(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mouseDragged(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseDragged(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mouseEntered(MouseEvent) - Method in class mdh.hephaestus2.Editor
 
mouseEntered(MouseEvent) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
mouseEntered(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseEntered(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mouseExited(MouseEvent) - Method in class mdh.hephaestus2.Editor
 
mouseExited(MouseEvent) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
mouseExited(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseExited(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mouseMoved(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseMoved(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mousePressed(MouseEvent) - Method in class mdh.hephaestus2.Editor
 
mousePressed(MouseEvent) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
mousePressed(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mousePressed(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
mouseReleased(MouseEvent) - Method in class mdh.hephaestus2.Editor
 
mouseReleased(MouseEvent) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
mouseReleased(MouseEvent) - Method in class mdh.hephaestus2.gamelib.Terminal
 
mouseReleased(MouseEvent) - Method in class mdh.hephaestus2.gamelib.IconList
 
moveby(int, int) - Method in class mdh.hephaestus2.gamelib.Sprite
Moves the sprite by a given delta.
moveParty(int, int, int, int, boolean) - Method in class mdh.hephaestus2.World
Moves all members of the party to a new location.
MoveResult - class mdh.hephaestus2.MoveResult.
MoveResult is the return code from movement or from callbacks.
MoveResult(int) - Constructor for class mdh.hephaestus2.MoveResult
Creates a new MoveResult with a null arg.
MoveResult(int, Stuff) - Constructor for class mdh.hephaestus2.MoveResult
Creates a new MoveResult.
moveto(int, int) - Method in class mdh.hephaestus2.gamelib.Sprite
Moves the sprite to specified coords.
moveto(int, int, int, int, boolean) - Method in class mdh.hephaestus2.Thing
Moves this Thing to a given coordinate.
moveto(LocationReadOnly, boolean) - Method in class mdh.hephaestus2.Thing
Moves this Thing to a given location.
MR_Blocked - Static variable in class mdh.hephaestus2.MoveResult
A predefined MoveResult(BLOCKED)
MR_Border - Static variable in class mdh.hephaestus2.MoveResult
A predefined MoveResult(BORDER, null)
MR_NoMove - Static variable in class mdh.hephaestus2.MoveResult
A predefined MoveResult(NOMOVE, null)
MR_Okay - Static variable in class mdh.hephaestus2.MoveResult
A predefined MoveResult(OKAY, null)
MultiLabel - class mdh.hephaestus2.gamelib.MultiLabel.
A MultiLabel is a simple component that can display multiple lines of text.
MultiLabel(String) - Constructor for class mdh.hephaestus2.gamelib.MultiLabel
 

N

NDIRS - Static variable in class mdh.hephaestus2.Global
Directions
NEQUIP - Static variable in class mdh.hephaestus2.Global
Equipment positions.
newGame() - Method in class mdh.hephaestus2.Adventure
Sets up the maps and game objects for a new adventure.
next() - Method in class mdh.hephaestus2.containers.KeyValue
Accessors
nextInt() - Method in interface mdh.hephaestus2.containers.IntEnumeration
 
NLAYERS - Static variable in class mdh.hephaestus2.Global
Values for terrain layers.
NOMOVE - Static variable in class mdh.hephaestus2.MoveResult
For a move, indicates that a move is okay, but that no further movement should be done by the system - this is usually returned when a callback teleports the actor somewhere; for a non-move callback, it's equivalent to OKAY.
North - Static variable in class mdh.hephaestus2.Global
Directions
NPRIMES - Static variable in class mdh.hephaestus2.Global
Number of primary stats: Body, Speed, Mind, Charm.
NSTATS - Static variable in class mdh.hephaestus2.Global
Statistic indices.

O

OKAY - Static variable in class mdh.hephaestus2.MoveResult
For a move, indicates that the move is okay, and should be completed for you; for a non-move callback, it indicates normal success.
OPA_Full - Static variable in class mdh.hephaestus2.Global
Opacity level: you can't see through it.
OPA_NAME - Static variable in class mdh.hephaestus2.Global
Text for each opacity level.
OPA_None - Static variable in class mdh.hephaestus2.Global
Opacity level: you can see through it.
OPA_Partial - Static variable in class mdh.hephaestus2.Global
Opacity level: there's a "mist" over everything behind it, and you can't see through two partials.
output(String) - Method in class mdh.hephaestus2.Entity
Displays output, if you're a player, does nothing if you're a Creature.
output(String) - Method in class mdh.hephaestus2.Game
Displays some text in the output terminal.
output(String, Color, Color, String) - Method in class mdh.hephaestus2.Creature
Does nothing for Creatures.
output(String, Color, Color, String) - Method in class mdh.hephaestus2.Entity
Displays output, if you're a player, does nothing if you're a Creature.
output(String, Color, Color, String) - Method in class mdh.hephaestus2.Game
Displays some text in the output terminal, with a given icon and colors.
output(String, Color, Color, String) - Method in class mdh.hephaestus2.Player
 
output(String, String) - Method in class mdh.hephaestus2.Entity
Displays output, if you're a player, does nothing if you're a Creature.
output(String, String) - Method in class mdh.hephaestus2.Game
Displays some text in the output terminal, with a given icon.
outputError(String) - Method in class mdh.hephaestus2.Game
Displays an error message in the output terminal.
outputMarkup(String) - Method in class mdh.hephaestus2.Game
Displays text with markup in the output terminal.

P

paint(Graphics) - Method in class mdh.hephaestus2.gamelib.BorderPanel
 
paint(Graphics) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
paint(Graphics) - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
paint(Graphics) - Method in class mdh.hephaestus2.gamelib.DoublePanel
Blits the onscreen buffer to the screen.
peek() - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
Returns top element without removing it.
peek() - Method in class mdh.hephaestus2.containers.IntStack
Returns top element without removing it.
Player - class mdh.hephaestus2.Player.
A player character.
Player(String) - Constructor for class mdh.hephaestus2.Player
Creates a new Player named 'name'.
playSound(String) - Method in class mdh.hephaestus2.Entity
Plays a sound, if you're a player, does nothing if you're a Creature.
playSound(String) - Method in class mdh.hephaestus2.Game
 
playSound(String) - Method in class mdh.hephaestus2.Player
 
playSound(String) - Method in class mdh.hephaestus2.gamelib.Application
 
pop() - Method in class mdh.hephaestus2.containers.IntStack
Removes and returns top element.
POS_CENTER - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
Values for position
POS_EAST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_NORTH - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_NORTHEAST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_NORTHWEST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_RANDOM - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_RELATIVE - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_SOUTH - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_SOUTHEAST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_SOUTHWEST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
POS_WEST - Static variable in class mdh.hephaestus2.gamelib.MetaDialog
 
preferredLayoutSize(Container) - Method in class mdh.hephaestus2.gamelib.StackLayout2
 
println(Color, Color, String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
println(Icon, Color, Color, String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
println(Icon, String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
println(String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
printlnMarkup(String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
printlnReverse(String) - Method in class mdh.hephaestus2.gamelib.Terminal
 
printStackTrace() - Method in class mdh.hephaestus2.HephaestusException
 
printStackTrace(PrintStream) - Method in class mdh.hephaestus2.HephaestusException
 
printStackTrace(PrintWriter) - Method in class mdh.hephaestus2.HephaestusException
 
PROBABLY_NOT_FOUND - Static variable in class mdh.hephaestus2.containers.SparseArray
constant used by indexOf()
PROG_East - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
PROG_North - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
PROG_Pause - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
PROG_South - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
PROG_Trigger - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
PROG_West - Static variable in class mdh.hephaestus2.Creature
Program steps for setBrain("p...")
Props - class mdh.hephaestus2.Props.
A collection of key/value pairs, with default values.
Props() - Constructor for class mdh.hephaestus2.Props
Creates an empty Props.
Props(BufferedReader) - Constructor for class mdh.hephaestus2.Props
Reads a Props from a reader.
push(int) - Method in class mdh.hephaestus2.containers.IntStack
Just calls 'add', so that's a touch faster.
put(int, boolean) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, byte) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, char) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, double) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, float) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, int) - Method in class mdh.hephaestus2.containers.SparseArray
Convenience method to store int values, after putting them in the wrapper.
put(int, long) - Method in class mdh.hephaestus2.containers.SparseArray
 
put(int, Object) - Method in class mdh.hephaestus2.containers.SparseArray
Assigns the 'value' to the entry at 'key'.
put(int, Object) - Method in class mdh.hephaestus2.containers.IntHash
Assigns the 'value' to the entry at 'key'.
put(int, short) - Method in class mdh.hephaestus2.containers.SparseArray
 

Q

quit() - Method in class mdh.hephaestus2.Game
Quits the program with exit code 0.
quit() - Method in class mdh.hephaestus2.gamelib.Application
Quits the program with exit code 0.

R

RANDOM - Static variable in class mdh.hephaestus2.gamelib.StackLayout2
 
Range - Static variable in class mdh.hephaestus2.Global
Statistic indices.
read(BufferedReader) - Method in class mdh.hephaestus2.Props
 
readExternal(ObjectInput) - Method in class mdh.hephaestus2.containers.IntStack
 
redraw() - Method in class mdh.hephaestus2.Game
Forces an immediate redraw of the View, and the stats display if any stats have changed.
redraw() - Method in class mdh.hephaestus2.gamelib.DoublePanel
Creates buffers if necessary, forces an immediate call to draw() in the current thread, and switches the onscreen and offscreen buffers.
remove(int) - Method in class mdh.hephaestus2.containers.IntStack
Deletes the element at index 'rm' and pulls everything above it down by one.
remove(int) - Method in class mdh.hephaestus2.containers.SparseArray
Removes the entry at 'key', and returns the former value.
remove(int) - Method in class mdh.hephaestus2.containers.IntHash
Removes the entry at 'key', and returns the former value.
remove(Sprite) - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Removes the sprite from the group.
removeActionListener(ActionListener) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
removeActionListener(ActionListener) - Method in class mdh.hephaestus2.gamelib.IconList
 
removeAll() - Method in class mdh.hephaestus2.gamelib.IconList
Removes all lines from the list.
removeEquip(Item) - Method in class mdh.hephaestus2.Player
Removes (unequips) an item, after calling it.removeCallback.
removeGroup(SpriteGroup) - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Removes a sprite group.
removeItemListener(ItemListener) - Method in class mdh.hephaestus2.gamelib.IconList
 
removeLayoutComponent(Component) - Method in class mdh.hephaestus2.gamelib.StackLayout2
 
removeMagic(String) - Method in class mdh.hephaestus2.Entity
Removes a "magic ability" named 'name' from the Entity.
removePlayer(Player) - Method in class mdh.hephaestus2.World
Removes a Player from the party.
repaintNow() - Method in class mdh.hephaestus2.gamelib.DoublePanel
Forces an immediate call to paint() in the current thread.
resize() - Method in class mdh.hephaestus2.gamelib.IconList
Internal calculations for size.
rest(String) - Static method in class mdh.hephaestus2.Global
Returns everything in a string after the first space, or "" if no spaces.
rgb(Color) - Static method in class mdh.hephaestus2.Global
Returns a six-digit hex code representing a color.
Right - Static variable in class mdh.hephaestus2.Global
Relative facings: (North + Right) % NDIRS = East, and so on.
RIGHT - Static variable in class mdh.hephaestus2.gamelib.StackLayout2
 
run() - Method in class mdh.hephaestus2.Game
Reads commands from the queue, and sleeps when there aren't any - users should not call this method!
run() - Method in class mdh.hephaestus2.gamelib.Screen
Update/animation thread.

S

SAVE - Static variable in class mdh.hephaestus2.gamelib.FileBrowser
 
SAVEVER - Static variable in class mdh.hephaestus2.Global
Version number as an int, like "200".
Screen - class mdh.hephaestus2.gamelib.Screen.
Screen is a self-updating graphics display.
Screen() - Constructor for class mdh.hephaestus2.gamelib.Screen
 
SELECT_DROP - Static variable in class mdh.hephaestus2.Player
select values for chooseItem()
SELECT_EQUIP - Static variable in class mdh.hephaestus2.Player
select values for chooseItem()
SELECT_ITEM - Static variable in class mdh.hephaestus2.Player
select values for chooseItem()
SELECT_USE - Static variable in class mdh.hephaestus2.Player
select values for chooseItem()
select(int) - Method in class mdh.hephaestus2.gamelib.IconList
 
selectGrid(int, int) - Method in class mdh.hephaestus2.Editor
 
set(int, boolean) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, byte) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, char) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, double) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, float) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, int) - Method in class mdh.hephaestus2.containers.IntStack
Changes the value at index 'i' to 'value'.
set(int, int) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, long) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, Object) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(int, short) - Method in class mdh.hephaestus2.containers.SparseArray
Deprecated.  
set(String, boolean) - Method in class mdh.hephaestus2.Props
Stores a boolean value.
set(String, int) - Method in class mdh.hephaestus2.Props
Stores an int value.
set(String, String) - Method in class mdh.hephaestus2.Props
Stores a String value.
setActionCommand(String) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
setAlign(int) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Sets the alignment of the background image, which must be one of the A_* constants.
setAlign(int) - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Sets the alignment of the background image, which must be one of the A_* constants.
setAlign(String) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Sets the alignment of the background image, which must be one of the ALIGN_NAME values.
setAtomic(boolean) - Method in class mdh.hephaestus2.gamelib.Terminal
 
setAttackCallback(String) - Method in class mdh.hephaestus2.Entity
Returns the callback that the Entity will call after every attack.
setAttackName(String) - Method in class mdh.hephaestus2.Entity
Sets the attack name.
setBackground(Image) - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Sets the background image.
setBlocking(boolean) - Method in class mdh.hephaestus2.Stuff
If true, this Stuff will block movement; if false, it will not.
setBorder(Color, int) - Method in class mdh.hephaestus2.gamelib.BorderPanel
Sets the color and width of the border.
setBorderCallback(String) - Method in class mdh.hephaestus2.Map
Sets the callback called when the player tries to enter the map border.
setBorderColor(Color) - Method in class mdh.hephaestus2.gamelib.BorderPanel
Sets the color of the border.
setBorderGradient(Color, Color, Color) - Method in class mdh.hephaestus2.gamelib.BorderPanel
Sets the border to be a gradient scaling from c0 to c1, then from c1 to c2.
setBorderWidth(int) - Method in class mdh.hephaestus2.gamelib.BorderPanel
Sets the width of the border.
setBrain(String) - Method in class mdh.hephaestus2.Creature
Sets the brain of the creature to one of BRAIN_*.
setCellsVisible(int) - Method in class mdh.hephaestus2.gamelib.IconList
Sets the number of cells visible.
setColumns(int) - Method in class mdh.hephaestus2.gamelib.Terminal
Use with extreme caution.
setDefeatCallback(String) - Method in class mdh.hephaestus2.Entity
Sets the function called when the Creature is killed by a Player.
setDown(boolean) - Method in class mdh.hephaestus2.gamelib.ImageButton
 
setDropCallback(String) - Method in class mdh.hephaestus2.Item
 
setEquip(int) - Method in class mdh.hephaestus2.Item
Sets the equipment position this item can be used in, or -1 for none.
setEquipCallback(String) - Method in class mdh.hephaestus2.Item
 
setEquipid(int, int) - Method in class mdh.hephaestus2.Player
Sets the equipment at position 'pos'.
setExp(int) - Method in class mdh.hephaestus2.Entity
Sets the experience total of this Entity.
setExp(int) - Method in class mdh.hephaestus2.Player
Sets the Player's experience point total, and the player levels up if exp reaches current level * Global.LEVEL_COST.
setExtensions(String[]) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
setFacing(int) - Method in class mdh.hephaestus2.Thing
Changes the facing of this Thing.
setFaction(int) - Method in class mdh.hephaestus2.Creature
Sets which faction the Creature belongs to.
setFilesFirst(boolean) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
setFont(Font) - Method in class mdh.hephaestus2.gamelib.Terminal
 
setFPS(int) - Method in class mdh.hephaestus2.gamelib.Screen
Sets the number of frames per second to smoothly animate.
setFrame(int) - Method in class mdh.hephaestus2.Tile
Sets the current frame of the tile, which can be used to individualize many copies of the same tile.
setGold(int) - Method in class mdh.hephaestus2.Statted
Sets the gold value of the object.
setGold(int) - Method in class mdh.hephaestus2.Player
 
setGridTerrain(int, int, String) - Method in class mdh.hephaestus2.Editor
 
setH(int) - Method in class mdh.hephaestus2.gamelib.Icon
 
setIcon(Image) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
setIconWidth(int) - Method in class mdh.hephaestus2.gamelib.Terminal
 
setImage(Image) - Method in class mdh.hephaestus2.gamelib.Icon
 
setImage(Image) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Sets the background image.
setImage(Image) - Method in class mdh.hephaestus2.gamelib.Sprite
Changes the image shown for the sprite, and updates the bounds width and height.
setImage(String) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Loads 'filename' and sets it as the background image.
setImage(URL) - Method in class mdh.hephaestus2.gamelib.ImagePanel
Loads 'url' and sets it as the background image.
setLevel(int) - Method in class mdh.hephaestus2.Player
Sets the Player's experience level.
setLoadFactor(float) - Method in class mdh.hephaestus2.containers.SparseArray
 
setMagic(String, String) - Method in class mdh.hephaestus2.Entity
Sets the callback for a "magic ability" named 'name'.
setMaxsize(int) - Method in class mdh.hephaestus2.gamelib.Icon
 
setName(String) - Method in class mdh.hephaestus2.Player
 
setName(String) - Method in class mdh.hephaestus2.Stuff
Sets the name of this Stuff.
setOpacity(int) - Method in class mdh.hephaestus2.Terrain
Sets the opacity of a Terrain, one of Global.OPA_*.
setOpacity(int) - Method in class mdh.hephaestus2.Thing
Sets the opacity of this Thing, to one of Global.OPA_*.
setPaused(boolean) - Method in class mdh.hephaestus2.Game
Pauses or resumes the automatic update of the View.
setPaused(boolean) - Method in class mdh.hephaestus2.gamelib.Screen
Pauses the update/animation thread.
setPose(int) - Method in class mdh.hephaestus2.Thing
Sets the current pose of this Thing.
setPosition() - Method in class mdh.hephaestus2.gamelib.FileBrowser
Called automatically by setVisible().
setPosition(int) - Method in class mdh.hephaestus2.gamelib.MetaDialog
Called automatically by setVisible(), but can also be invoked directly to move the viewer around.
setRelative(Component) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
setRelativePosition(Component, int, int) - Method in class mdh.hephaestus2.gamelib.MetaDialog
 
setRemoveCallback(String) - Method in class mdh.hephaestus2.Item
 
setScaleIcons(int) - Method in class mdh.hephaestus2.gamelib.IconList
 
setScreen(Screen) - Method in class mdh.hephaestus2.gamelib.Application
Sets the Screen to use as the central component.
setShowHidden(boolean) - Method in class mdh.hephaestus2.gamelib.FileBrowser
 
setSize(int, int) - Method in class mdh.hephaestus2.gamelib.DoublePanel
Sets the size of the component to fixed values.
setStat(int, int) - Method in class mdh.hephaestus2.Statted
Sets the current score of stat 'i'.
setStat(int, int) - Method in class mdh.hephaestus2.Player
 
setStatBoth(int, int) - Method in class mdh.hephaestus2.Statted
Sets both the current and maximum score of stat 'i'.
setStatMax(int, int) - Method in class mdh.hephaestus2.Statted
Sets the maximum score of stat 'i'.
setStatMax(int, int) - Method in class mdh.hephaestus2.Player
 
setStep(int) - Method in class mdh.hephaestus2.Creature
Sets the current step to execute if brain is BRAIN_Program.
setTakeCallback(String) - Method in class mdh.hephaestus2.Item
 
setTerrain(int) - Method in class mdh.hephaestus2.Grid
Sets the terrain type of this Grid.
setText(String) - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
setThinkCallback(String) - Method in class mdh.hephaestus2.Creature
Sets the brain to BRAIN_Callback, and the callback to call every turn to 't'.
setTile(int, Tile) - Method in class mdh.hephaestus2.Terrain
Sets the tile for a given layer (one of Global.LAYER_*).
setTile(int, Tile) - Method in class mdh.hephaestus2.Thing
Sets the tile for pose 'pose'.
setTopCell(int) - Method in class mdh.hephaestus2.gamelib.IconList
Sets the topmost visible cell.
setTopLine(int) - Method in class mdh.hephaestus2.gamelib.Terminal
Sets the topmost visible cell.
setTriggerCallback(String) - Method in class mdh.hephaestus2.Stuff
Sets the trigger callback of this Stuff.
setTurnCallback(String) - Method in class mdh.hephaestus2.Entity
Sets the callback called on every turn.
setVerifyQuit(boolean) - Method in class mdh.hephaestus2.gamelib.Application
If 'v' is true, then when the window is closed or 'verifyQuit()' is called by other code, a dialog box will pop up asking if you're sure you want to quit.
setVisibleLines(int) - Method in class mdh.hephaestus2.gamelib.Terminal
 
setW(int) - Method in class mdh.hephaestus2.gamelib.Icon
 
setX(int) - Method in class mdh.hephaestus2.gamelib.Icon
 
setY(int) - Method in class mdh.hephaestus2.gamelib.Icon
 
SHIFT - Static variable in class mdh.hephaestus2.gamelib.Application
 
show() - Method in class mdh.hephaestus2.gamelib.MetaDialog
Centers the dialog over the parent frame
show() - Method in class mdh.hephaestus2.gamelib.FileBrowser
Centers the dialog over the parent frame
show() - Method in class mdh.hephaestus2.gamelib.Application
Packs and shows the application.
showError(String) - Method in class mdh.hephaestus2.gamelib.Application
Shows an error message in red in the status line.
showStatus(String) - Method in class mdh.hephaestus2.gamelib.Application
Shows a line of text in the status line.
size() - Method in class mdh.hephaestus2.Props
Returns the number of defined properties.
size() - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Returns the number of sprites contained in the group.
size() - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
The number of elements actually defined.
size() - Method in class mdh.hephaestus2.containers.IntStack
The number of elements actually defined.
size() - Method in class mdh.hephaestus2.containers.SparseArray
 
sleep(long) - Method in class mdh.hephaestus2.Game
Stops the program for the given time in milliseconds.
South - Static variable in class mdh.hephaestus2.Global
Directions
SparseArray - class mdh.hephaestus2.containers.SparseArray.
A SparseArray is a hashtable using an int key rather than an object.
SparseArray() - Constructor for class mdh.hephaestus2.containers.SparseArray
Creates a new SparseArray with a default size of DEFAULT_CAPACITY and loadFactor of DEFAULT_LOADFACTOR.
SparseArray(int) - Constructor for class mdh.hephaestus2.containers.SparseArray
Creates a new SparseArray with a given capacity and default loadFactor of DEFAULT_LOADFACTOR.
SparseArray(int, float) - Constructor for class mdh.hephaestus2.containers.SparseArray
Creates an SparseArray.
Speed - Static variable in class mdh.hephaestus2.Global
Statistic indices.
Sprite - class mdh.hephaestus2.gamelib.Sprite.
A Sprite is a simple object that can appear on a Screen.
Sprite(String) - Constructor for class mdh.hephaestus2.gamelib.Sprite
Creates a new sprite with a null image and bounds 0,0,0,0.
SpriteGroup - class mdh.hephaestus2.gamelib.SpriteGroup.
SpriteGroup organizes several sprites into a collection (internally, an ArrayList), and includes methods to detect collisions between groups.
SpriteGroup(String) - Constructor for class mdh.hephaestus2.gamelib.SpriteGroup
 
sprites() - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Returns an iterator of the sprites in the group.
SpriteScreen - class mdh.hephaestus2.gamelib.SpriteScreen.
SpriteScreen is a Screen which can hold SpriteGroups.
SpriteScreen() - Constructor for class mdh.hephaestus2.gamelib.SpriteScreen
 
StackLayout2 - class mdh.hephaestus2.gamelib.StackLayout2.
StackLayout2 places one component on top of another (as seen in the Committee to Put Things On Top Of Other Things).
StackLayout2() - Constructor for class mdh.hephaestus2.gamelib.StackLayout2
default left alignment and gaps of 2, 2
StackLayout2(String) - Constructor for class mdh.hephaestus2.gamelib.StackLayout2
default gaps of 2, 2
StackLayout2(String, int, int) - Constructor for class mdh.hephaestus2.gamelib.StackLayout2
 
start() - Method in class mdh.hephaestus2.gamelib.Screen
Starts the update/animation thread.
STAT_NAME - Static variable in class mdh.hephaestus2.Global
Text for each stat.
Statted - class mdh.hephaestus2.Statted.
Anything with stats and gold value - Items, Creatures, and Players.
stopSounds() - Method in class mdh.hephaestus2.gamelib.Application
Stops all playing sounds.
Stuff - class mdh.hephaestus2.Stuff.
Anything in the system with an id, a name, and a trigger callback.

T

takeDamage(int) - Method in class mdh.hephaestus2.Entity
'dmg' points are subtracted from the Entity's current HitPoints.
takeDamage(int) - Method in class mdh.hephaestus2.Player
 
takeItem(Item) - Method in class mdh.hephaestus2.Player
Adds an item from the Player's inventory, after calling it.takeCallback.
Terminal - class mdh.hephaestus2.gamelib.Terminal.
A "glass TTY" with scrollback, and optional icons next to every line.
Terminal() - Constructor for class mdh.hephaestus2.gamelib.Terminal
Creates a default 80 * 25 Terminal, with 10-pixel font.
Terminal(int) - Constructor for class mdh.hephaestus2.gamelib.Terminal
Creates a default 80 * lines Terminal, with 10-pixel font.
Terminal(int, int) - Constructor for class mdh.hephaestus2.gamelib.Terminal
Creates a default cols * lines Terminal, with 10-pixel font.
Terminal(int, int, boolean) - Constructor for class mdh.hephaestus2.gamelib.Terminal
Creates a Terminal with 10-pixel font.
Terminal(int, int, int) - Constructor for class mdh.hephaestus2.gamelib.Terminal
Creates a Terminal with a scrollbar.
Terminal(int, int, int, boolean) - Constructor for class mdh.hephaestus2.gamelib.Terminal
 
Terrain - class mdh.hephaestus2.Terrain.
Terrain types.
Terrain(String) - Constructor for class mdh.hephaestus2.Terrain
Creates a new Terrain with the given name.
Thing - class mdh.hephaestus2.Thing.
Anything that can appear on a Map.
TICK_TIME - Static variable in class mdh.hephaestus2.Global
Animation time
tick() - Method in class mdh.hephaestus2.gamelib.SpriteScreen
Updates each SpriteGroup.
tick() - Method in class mdh.hephaestus2.gamelib.Screen
Called every frame.
Tile - class mdh.hephaestus2.Tile.
A simple animated tile.
TILE_SIZE - Static variable in class mdh.hephaestus2.Global
All tiles should be this size square.
TILE_SIZE2 - Static variable in class mdh.hephaestus2.Global
Half of TILE_SIZE
Tile(String, int, int) - Constructor for class mdh.hephaestus2.Tile
Creates a new animated tile.
toBoolean(Object) - Static method in class mdh.hephaestus2.Global
Returns true if o is a non-zero Integer or a non-empty String, false otherwise.
toInteger(Object) - Static method in class mdh.hephaestus2.Global
Returns 'o' converted to an Integer, or Integer(0) if 'o' is null.
toString() - Method in class mdh.hephaestus2.Props
 
toString() - Method in class mdh.hephaestus2.MoveResult
Returns a text representation of the result and arg.
toString() - Method in interface mdh.hephaestus2.LocationReadOnly
A human-readable string of this Location, in the form "[mapid x,y f]".
toString() - Method in class mdh.hephaestus2.Tile
 
toString() - Method in class mdh.hephaestus2.Grid
 
toString() - Method in class mdh.hephaestus2.Stuff
Calls toString(true).
toString() - Method in class mdh.hephaestus2.gamelib.Icon
 
toString() - Method in class mdh.hephaestus2.gamelib.StackLayout2
 
toString() - Method in class mdh.hephaestus2.gamelib.IconList
 
toString() - Method in interface mdh.hephaestus2.containers.IntStackReadOnly
Produces [#,...]
toString() - Method in class mdh.hephaestus2.containers.IntStack
Produces [#,...]
toString() - Method in class mdh.hephaestus2.containers.SparseArray
 
toString() - Method in class mdh.hephaestus2.containers.KeyValue
 
toString(boolean) - Method in class mdh.hephaestus2.Stuff
Produces a description of the Stuff.
toString(Object) - Static method in class mdh.hephaestus2.Global
Returns 'o' converted to a String, or "" if 'o' is null.
turnBack(int) - Static method in class mdh.hephaestus2.Global
Returns the direction opposite to 'dir'.
turnLeft(int) - Static method in class mdh.hephaestus2.Global
Returns the direction to the left of 'dir'.
turnRight(int) - Static method in class mdh.hephaestus2.Global
Returns the direction to the right of 'dir'.
TURNS_PER_DAY - Static variable in class mdh.hephaestus2.Global
Number of game turns (defined as 1 minute each) per day.
TURNS_PER_HOUR - Static variable in class mdh.hephaestus2.Global
Number of game turns (defined as 1 minute each) per hour.
TYPE_Block - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Creature - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Entity - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Item - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Map - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_NAME - Static variable in class mdh.hephaestus2.Global
Text representation of TYPE_* constants.
TYPE_None - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Player - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Statted - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Stuff - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Terrain - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.
TYPE_Thing - Static variable in class mdh.hephaestus2.Global
Type codes for Stuff subclasses.

U

update() - Method in class mdh.hephaestus2.gamelib.SpriteGroup
Calls update() on all sprites in the group.
update() - Method in class mdh.hephaestus2.gamelib.Sprite
Update() is called every tick to let the sprite move, etc.
update(Graphics) - Method in class mdh.hephaestus2.gamelib.MultiLabel
 
update(Graphics) - Method in class mdh.hephaestus2.gamelib.DoublePanel
Redraws and paints.

V

value() - Method in class mdh.hephaestus2.containers.KeyValue
 
verifyQuit() - Method in class mdh.hephaestus2.gamelib.Application
Pops up a dialog box to verify quitting.
VERSION - Static variable in class mdh.hephaestus2.Global
Minor version string, like "Hephaestus 2.00"
VERSIONBASE - Static variable in class mdh.hephaestus2.Global
Major version string, like "Hephaestus 2"
VIEW_DIST - Static variable in class mdh.hephaestus2.Global
Number of tiles radius visible on View.
VIEW_SIZE - Static variable in class mdh.hephaestus2.Global
Size of the View panel.
VIEW_TILES - Static variable in class mdh.hephaestus2.Global
Number of tiles across visible on View.
VIS_Full - Static variable in class mdh.hephaestus2.Global
Visibility levels.
VIS_NAME - Static variable in class mdh.hephaestus2.Global
Text for each visibility level.
VIS_None - Static variable in class mdh.hephaestus2.Global
Visibility levels.
VIS_Partial - Static variable in class mdh.hephaestus2.Global
Visibility levels.

W

w() - Method in class mdh.hephaestus2.gamelib.Icon
 
West - Static variable in class mdh.hephaestus2.Global
Directions
windowActivated(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
windowClosed(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
windowClosing(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
Calls verifyQuit().
windowDeactivated(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
windowDeiconified(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
windowIconified(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
windowOpened(WindowEvent) - Method in class mdh.hephaestus2.gamelib.Application
 
world - Variable in class mdh.hephaestus2.Adventure
The World instance.
World - class mdh.hephaestus2.World.
Game world model.
write(BufferedWriter) - Method in class mdh.hephaestus2.Props
 
write(StringBuffer) - Method in class mdh.hephaestus2.Props
 
writeExternal(ObjectOutput) - Method in class mdh.hephaestus2.containers.IntStack
 

X

x() - Method in interface mdh.hephaestus2.LocationReadOnly
Returns the x-coord of this location.
x() - Method in class mdh.hephaestus2.gamelib.Icon
 
xsize() - Method in class mdh.hephaestus2.Map
Returns the width of the map.

Y

y() - Method in interface mdh.hephaestus2.LocationReadOnly
Returns the y-coord of this location.
y() - Method in class mdh.hephaestus2.gamelib.Icon
 
ysize() - Method in class mdh.hephaestus2.Map
Returns the height of the map.

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