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

A

ABLE_TO_WALK_ON - Static variable in class org.haphazard.gui.engine.Tile
 
ATTACK - Static variable in class org.haphazard.gui.MainFrame
 
ATTACK - Static variable in class org.haphazard.system.action.CharacterAction
 
AboutDialog - class org.haphazard.gui.dialog.AboutDialog.
 
AboutDialog(Frame, boolean) - Constructor for class org.haphazard.gui.dialog.AboutDialog
Creates new form AboutDialog
Action - class org.haphazard.system.action.Action.
General class for handling an action in the world
Action() - Constructor for class org.haphazard.system.action.Action
Creates a new instance of Action
Arm - class org.haphazard.character.body.Arm.
An implementation of an arm.
Arm() - Constructor for class org.haphazard.character.body.Arm
Creates a new instance of Arm
Arm(String) - Constructor for class org.haphazard.character.body.Arm
Creates an instance of an arm with a specific name
Arm(String, boolean) - Constructor for class org.haphazard.character.body.Arm
Creates an arm with a name and denotes if it is an primary arm or not
add(Socket) - Method in class org.haphazard.XML.IOHandler
Adds a socket to be handled.
add(GeneralSkill) - Method in class org.haphazard.character.GlobalSkill
Adds a skill to the global skill list
add(Item, Vector) - Method in class org.haphazard.character.inventory.BestFit
Adds an item to a container
add(Item) - Method in class org.haphazard.character.inventory.Inventory
Adds an item to this container
add(Item, Vector) - Method in interface org.haphazard.character.inventory.InventoryAlgorithm
Adds an item to a container
add(Item, Vector) - Method in class org.haphazard.character.inventory.Random
Adds an item to a container
add(Item, Vector) - Method in class org.haphazard.character.inventory.RelaxedBestFit
Adds an item to a container
add(Item) - Method in class org.haphazard.item.Container
Adds an item to this container
add(Item) - Method in interface org.haphazard.item.Containing
Adds an item to this container
add(GeneralItem) - Method in class org.haphazard.item.GlobalItem
Adds an item to the global item list
add(Item) - Method in class org.haphazard.item.Item
Adds an item to this container
add(Vector3D) - Method in class org.haphazard.util.Point3D
Adds a vector to the point
add(Point3D) - Method in class org.haphazard.util.Point3D
Adds a point to the point
add(Comparable) - Method in class org.haphazard.util.PriorityList
 
add(int, Object) - Method in class org.haphazard.util.PriorityList
 
addBodyPart(BodyPart) - Method in class org.haphazard.character.Character
Adds a bodypart to the character
addContainer(Containing) - Method in class org.haphazard.character.inventory.Inventory
Adds a container to the inventory
addContainerSpecialization(String) - Method in class org.haphazard.item.GeneralItem
Adds an item specialization to this container.
addExperience(int) - Method in class org.haphazard.character.Skill
Adds experience points to the skill
addFrameImage(FrameImage) - Method in class org.haphazard.gui.engine.Frame
Adds an image to the frame image buffer.
addItem(Item) - Method in class org.haphazard.gui.engine.Tile
Adds an item to a tile
addMessage(Message) - Method in class org.haphazard.XML.MessageHandler
Adds a message to this action
addMessageText(String, int) - Method in class org.haphazard.gui.MainFrame
Adds a string to the message area at the bottom of the game screen
addPart(Object) - Method in class org.haphazard.XML.Message
 
addRestriction(String) - Method in class org.haphazard.item.GeneralItem
Adds a restriction to this item
addSkill(Skill) - Method in class org.haphazard.character.Character
Adds a skill to the characters repertoire
addSpecialization(String) - Method in class org.haphazard.item.Container
Adds an item specialization to this container.
addSprite(Sprite) - Method in class org.haphazard.character.Character
Adds a sprite to this object
addSprite(Sprite) - Method in class org.haphazard.gui.engine.GraphicalObject
Adds a sprite to this object
addWound(int) - Method in class org.haphazard.character.body.BodyPart
Adds a wound to the location
allows(Clothes) - Method in class org.haphazard.item.Clothes
Checks if the clothes can be worn together
allows(GeneralClothes) - Method in class org.haphazard.item.GeneralClothes
Checks if the clothes can be worn together
assign(long, Object) - Method in class org.haphazard.util.IDServer
Assigns an id to an object for easy retrieval of objects
attack(Character, Character) - Method in class org.haphazard.combat.GlobalCombatEngine
Resolves an attack
attack(Character) - Method in class org.haphazard.system.action.CharacterAction
Mounts an attack on a specified character.

B

BestFit - class org.haphazard.character.inventory.BestFit.
Algorithm that puts an item into the best container with no rearranging
BestFit() - Constructor for class org.haphazard.character.inventory.BestFit
Creates a new instance of BestFit
BodyPart - class org.haphazard.character.body.BodyPart.
Abstract class that denotes a location on a characters body.
BodyPart() - Constructor for class org.haphazard.character.body.BodyPart
Creates a new instance of BodyPart
BodyPart(String) - Constructor for class org.haphazard.character.body.BodyPart
Creates a bodypart with a specific name
Brain - interface org.haphazard.system.ai.Brain.
 
Breast - class org.haphazard.character.body.Breast.
Silly implementation of a breast
Breast() - Constructor for class org.haphazard.character.body.Breast
Creates a new instance of Breast
Breast(String) - Constructor for class org.haphazard.character.body.Breast
Creates a breast with a specific name
broadcast(Message) - Method in class org.haphazard.XML.IOHandler
Broadcasts the message to all registered sockets.

C

CANNOT_GO_ON_TILE - Static variable in class org.haphazard.gui.engine.Tile
 
CARRY - Static variable in class org.haphazard.system.action.CharacterAction
 
CHARACTER_ON_TILE - Static variable in class org.haphazard.gui.engine.Tile
 
CONTAINS_SUBWORLD - Static variable in class org.haphazard.gui.engine.Tile
 
Character - class org.haphazard.character.Character.
A character handles everything with a person in the world
Character() - Constructor for class org.haphazard.character.Character
Creates a new instance of Character
Character(String) - Constructor for class org.haphazard.character.Character
Creates a new instance of Character
CharacterAction - class org.haphazard.system.action.CharacterAction.
 
CharacterAction(Character) - Constructor for class org.haphazard.system.action.CharacterAction
Creates a new instance of CharacterAction
CharacterParser - class org.haphazard.XML.CharacterParser.
An XML-handler for a character list
CharacterTest - class org.haphazard.util.test.CharacterTest.
A test to check the functions of the Character class
CharacterTest() - Constructor for class org.haphazard.util.test.CharacterTest
Creates a new instance of CharacterTest
ClientInputHandler - class org.haphazard.gui.handler.ClientInputHandler.
 
ClientInputHandler() - Constructor for class org.haphazard.gui.handler.ClientInputHandler
Creates a new instance of hKeyHandler
Clothes - class org.haphazard.item.Clothes.
Clothes a character can wear
Clothes() - Constructor for class org.haphazard.item.Clothes
Creates a cloth
Clothes(String) - Constructor for class org.haphazard.item.Clothes
Creates a cloth with a specific name
CombatTest - class org.haphazard.util.test.CombatTest.
Tests the combat system
CombatTest() - Constructor for class org.haphazard.util.test.CombatTest
Creates a new instance of CombatTest
ConnectionDialog - class org.haphazard.gui.dialog.ConnectionDialog.
 
ConnectionDialog(Frame, boolean) - Constructor for class org.haphazard.gui.dialog.ConnectionDialog
Creates new form ConnectionDialog
ConnectionHandler - class org.haphazard.XML.ConnectionHandler.
Starts a server socket and accepts sockets.
ConnectionHandler(IOHandler, int) - Constructor for class org.haphazard.XML.ConnectionHandler
Creates a new instance of ServerAccepter
Container - class org.haphazard.item.Container.
Class for holding items and keeping track of free space for more items
Container() - Constructor for class org.haphazard.item.Container
Creates a new container
Containing - interface org.haphazard.item.Containing.
 
Controller - class org.haphazard.system.action.Controller.
 
Controller(Character, Brain) - Constructor for class org.haphazard.system.action.Controller
Creates a new instance of Controller
camera - Variable in class org.haphazard.gui.engine.Map
 
canCarry(Item) - Method in class org.haphazard.character.Character
Checks if a character can carry an item
canEquip(Item) - Method in class org.haphazard.character.Character
Tests if a character can equip an item (wield if weapon, wear if clothes
canHold(Item, Vector) - Method in class org.haphazard.character.inventory.BestFit
Checks if the specified containers can hold the specified item
canHold(Item) - Method in class org.haphazard.character.inventory.Inventory
Checks if this container can hold the specified item
canHold(Item, Vector) - Method in interface org.haphazard.character.inventory.InventoryAlgorithm
Checks if the specified containers can hold the specified item
canHold(Item, Vector) - Method in class org.haphazard.character.inventory.Random
Checks if the specified containers can hold the specified item
canHold(Item, Vector) - Method in class org.haphazard.character.inventory.RelaxedBestFit
Checks if the specified containers can hold the specified item
canHold(Item) - Method in class org.haphazard.item.Container
Checks if this container can hold the item in question
canHold(Item) - Method in interface org.haphazard.item.Containing
Checks if this container can hold the specified item
canHold(Item) - Method in class org.haphazard.item.Item
Checks if this container can hold the specified item
canWalkOnTile(Point3D) - Method in class org.haphazard.gui.engine.Map
Checks if a character can walk on a tile
canWear(Clothes) - Method in class org.haphazard.character.body.BodyPart
Checks if the character can wear the specified clothes
carry(Item) - Method in class org.haphazard.character.Character
Makes a character carry an item (adds it to the characters inventory) Hands are not included in the inventory, you'll have to "equip" the item to carry it in the hands.
carry(Item) - Method in class org.haphazard.system.action.CharacterAction
Makes the character carry an item
centerCameraOn(Point3D) - Method in class org.haphazard.gui.engine.Map
Centers the camera on the specified location
changeCameraMode() - Method in class org.haphazard.system.action.GlobalGUIController
 
characters(char[], int, int) - Method in class org.haphazard.XML.CharacterParser
Is called when characters appear inside an element
characters(char[], int, int) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Is called when characters appear inside an element
characters(char[], int, int) - Method in class org.haphazard.XML.GlobalItemParser
Is called when characters appear inside an element
characters(char[], int, int) - Method in class org.haphazard.XML.GlobalMapParser
Is called when characters appear inside an element
characters(char[], int, int) - Method in class org.haphazard.XML.GlobalSkillParser
Is called when characters appear inside an element
characters(char[], int, int) - Method in class org.haphazard.XML.GlobalSpriteParser
Is called when characters appear inside an element
clear() - Method in class org.haphazard.util.IDServer
Clears the ID structure
clone() - Method in class org.haphazard.gui.engine.Frame
 
clone() - Method in class org.haphazard.gui.engine.FrameImage
 
clone() - Method in class org.haphazard.gui.engine.Sprite
 
clone() - Method in class org.haphazard.util.Point3D
Clones this object
combine(Frame) - Method in class org.haphazard.gui.engine.Frame
Combine this frame with the Frame that is sent in.
combine(Sprite, String) - Method in class org.haphazard.gui.engine.Sprite
Combine this sprite with a new sprite.
combineSprites(String, String, String) - Method in class org.haphazard.gui.engine.GraphicalObject
Combines two Sprites to one new.
contains(Item) - Method in class org.haphazard.character.inventory.Inventory
Checks if this container contains this item
contains(Item) - Method in class org.haphazard.item.Container
Checks if this container contains a specific item
contains(Item) - Method in interface org.haphazard.item.Containing
Checks if this container contains this item
contains(Item) - Method in class org.haphazard.item.Item
Checks if this container contains this item
coordinateCheck(Point3D) - Method in class org.haphazard.gui.engine.Map
Checks if it's OK to move to the position
create() - Method in class org.haphazard.util.IDServer
Creates a new id.
create(GraphicalObject) - Method in class org.haphazard.util.IDServer
Creates and assigns an id to a graphical object
createNodes(Vector, DefaultMutableTreeNode, String) - Method in class org.haphazard.gui.dialog.component.SkillTree
Creates and adds all children to a certain node
createSkillNodes(Vector, DefaultMutableTreeNode, Skill) - Method in class org.haphazard.character.Character
Creates and adds all children to a certain node
cross(Vector3D) - Method in class org.haphazard.util.Vector3D
Takes the cross product of two vectors

D

DEFEND - Static variable in class org.haphazard.system.action.CharacterAction
 
DIE - Static variable in class org.haphazard.system.action.CharacterAction
 
DO_NOT_DRAW_STATICAL_OBJECT - Static variable in class org.haphazard.gui.engine.Tile
 
DO_NOT_DRAW_TILE - Static variable in class org.haphazard.gui.engine.Tile
 
DROP - Static variable in class org.haphazard.system.action.CharacterAction
 
DicePool - class org.haphazard.dice.DicePool.
A class that rolls several dice of the same sort
DicePool(boolean) - Constructor for class org.haphazard.dice.DicePool
Creates a new instance of DicePool
Die - class org.haphazard.dice.Die.
A small class denoting a die
Die(int) - Constructor for class org.haphazard.dice.Die
Creates a new instance of Die
Dimension3D - class org.haphazard.util.Dimension3D.
A class for describing volume in three dimensions
Dimension3D() - Constructor for class org.haphazard.util.Dimension3D
Creates a new instance of Dimension3D
Dimension3D(int, int, int) - Constructor for class org.haphazard.util.Dimension3D
Creates a new instance of Dimension3D
defend(Character) - Method in class org.haphazard.system.action.CharacterAction
 
destination - Variable in class org.haphazard.XML.Message
 
die() - Method in class org.haphazard.system.action.CharacterAction
Makes the character die
displayCharacter(Character, BufferedImage) - Method in class org.haphazard.gui.dialog.EquipPanel
Displays a character
displayCharacter(Character, BufferedImage) - Method in class org.haphazard.gui.dialog.SkillPanel
Sets the display to a certain character
displayDescription(long, Color) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets the time to display the description
displayDrawingArea() - Method in class org.haphazard.gui.MainFrame
 
displayEffect(Graphics2D, String, int, int) - Method in class org.haphazard.gui.engine.GlobalEffects
 
displayEffectOnTile(String, Point3D, Map) - Method in class org.haphazard.gui.engine.GlobalEffects
This display one effect on a tile on a map.
displayEquip(Character) - Method in class org.haphazard.gui.MainFrame
 
displayMenu(MouseEvent, Character) - Method in class org.haphazard.gui.dialog.PopupActionMenu
 
displayMsgBox() - Method in class org.haphazard.gui.MainFrame
 
displayMsgBox(BufferedImage) - Method in class org.haphazard.gui.dialog.MsgBox
 
displaySkill(Character) - Method in class org.haphazard.gui.MainFrame
 
displaySprite(String) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets the sprite to be displayed according to the spriteKey and flippedVertically.
distance(Point3D) - Method in class org.haphazard.util.Point3D
Calculates the distance to another point
dot(Vector3D) - Method in class org.haphazard.util.Vector3D
Calculates the dot product of two vectors
drawString(Graphics2D, Point, String, Color) - Static method in class org.haphazard.gui.GlobalImageUtilities
A static function to draw a string in a graphics context.
drop(Item) - Method in class org.haphazard.character.Character
Finds an item in the inventory and drops it
drop(Item) - Method in class org.haphazard.system.action.CharacterAction
Makes the character drop an item

E

Editor - class org.haphazard.editor.Editor.
 
EquipPanel - class org.haphazard.gui.dialog.EquipPanel.
 
EquipPanel() - Constructor for class org.haphazard.gui.dialog.EquipPanel
Creates new form EquipPanel
end() - Method in class org.haphazard.XML.ConnectionHandler
 
endDocument() - Method in class org.haphazard.XML.CharacterParser
This method is called when ending a parse
endDocument() - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
This method is called when ending a parse
endDocument() - Method in class org.haphazard.XML.GlobalItemParser
This method is called when ending a parse
endDocument() - Method in class org.haphazard.XML.GlobalMapParser
This method is called when ending a parse
endDocument() - Method in class org.haphazard.XML.GlobalSkillParser
This method is called when ending a parse
endDocument() - Method in class org.haphazard.XML.GlobalSpriteParser
This method is called when ending a parse
endElement(String, String, String) - Method in class org.haphazard.XML.CharacterParser
Is called at the end of parsing an element
endElement(String, String, String) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Is called at the end of parsing an element
endElement(String, String, String) - Method in class org.haphazard.XML.GlobalItemParser
Is called at the end of parsing an element
endElement(String, String, String) - Method in class org.haphazard.XML.GlobalMapParser
Is called at the end of parsing an element
endElement(String, String, String) - Method in class org.haphazard.XML.GlobalSkillParser
Is called at the end of parsing an element
endElement(String, String, String) - Method in class org.haphazard.XML.GlobalSpriteParser
Is called at the end of parsing an element
envelopes(Dimension3D) - Method in class org.haphazard.util.Dimension3D
Checks if this dimension can completely envelope another dimension
equals(Object) - Method in class org.haphazard.character.GeneralSkill
Checks if this object is equal to another object
equals(Object) - Method in class org.haphazard.item.GeneralItem
Checks if this item is equal to another item
equals(Object) - Method in class org.haphazard.system.action.Action
Tests if this action equals another action
equals(Point3D) - Method in class org.haphazard.util.Point3D
Checks if this point is approximately equal to another point
equals(Point3D, double) - Method in class org.haphazard.util.Point3D
Checks if this point is approximately equal to another point
error(SAXParseException) - Method in class org.haphazard.XML.CharacterParser
The function will be called if an error is encountered during parsing.
error(SAXParseException) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
The function will be called if an error is encountered during parsing.
error(SAXParseException) - Method in class org.haphazard.XML.GlobalItemParser
The function will be called if an error is encountered during parsing.
error(SAXParseException) - Method in class org.haphazard.XML.GlobalMapParser
The function will be called if an error is encountered during parsing.
error(SAXParseException) - Method in class org.haphazard.XML.GlobalSkillParser
The function will be called if an error is encountered during parsing.
error(SAXParseException) - Method in class org.haphazard.XML.GlobalSpriteParser
The function will be called if an error is encountered during parsing.
experienceProgress() - Method in class org.haphazard.character.Skill
Gets the current progress towards the next level

F

Frame - class org.haphazard.gui.engine.Frame.
A frame contains an image of an animation
Frame(Vector, long) - Constructor for class org.haphazard.gui.engine.Frame
A constructor for frame
Frame(long) - Constructor for class org.haphazard.gui.engine.Frame
A constructor for frame
FrameEditor - class org.haphazard.editor.FrameEditor.
 
FrameEditor(Frame, boolean) - Constructor for class org.haphazard.editor.FrameEditor
Creates new form FrameEditor
FrameEditor(Dialog, boolean) - Constructor for class org.haphazard.editor.FrameEditor
 
FrameImage - class org.haphazard.gui.engine.FrameImage.
An image to be used in a frame
FrameImage() - Constructor for class org.haphazard.gui.engine.FrameImage
 
FrameImage(String, Point, Point, Rectangle) - Constructor for class org.haphazard.gui.engine.FrameImage
Creates a new frame image from an url
FrameImage(BufferedImage, String, Point, Point, Rectangle) - Constructor for class org.haphazard.gui.engine.FrameImage
 
FrameImageEditor - class org.haphazard.editor.FrameImageEditor.
 
FrameImageEditor(Dialog, boolean) - Constructor for class org.haphazard.editor.FrameImageEditor
Creates new form SpriteEditor
FrameImageEditor(Frame, boolean) - Constructor for class org.haphazard.editor.FrameImageEditor
 
fatalError(SAXParseException) - Method in class org.haphazard.XML.CharacterParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
fatalError(SAXParseException) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
fatalError(SAXParseException) - Method in class org.haphazard.XML.GlobalItemParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
fatalError(SAXParseException) - Method in class org.haphazard.XML.GlobalMapParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
fatalError(SAXParseException) - Method in class org.haphazard.XML.GlobalSkillParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
fatalError(SAXParseException) - Method in class org.haphazard.XML.GlobalSpriteParser
This function is called when an error that is so severe that the parsing cannot continue is encountered.
findTarget() - Method in class org.haphazard.system.action.GlobalGUIController
 
findTarget() - Method in class org.haphazard.system.ai.SolitaryHunterKiller
 
flipBoth() - Method in class org.haphazard.gui.engine.Sprite
Creates a new sprite that is flipped both ways
flipHorizontally() - Method in class org.haphazard.gui.engine.Frame
Flips a new frame horizontally (copy of this frame)
flipHorizontally() - Method in class org.haphazard.gui.engine.FrameImage
 
flipHorizontally() - Method in class org.haphazard.gui.engine.Sprite
Creates a new sprite that is horizontally flipped
flipImageHorizontally(String, BufferedImage) - Method in class org.haphazard.gui.GlobalImageUtilities
Flips the imge horizontally and returns the new image
flipImageVertically(String, BufferedImage) - Method in class org.haphazard.gui.GlobalImageUtilities
Flips the imge vertically and returns the new image
flipVertically() - Method in class org.haphazard.gui.engine.Frame
Flips a new frame vertically (copy of this frame)
flipVertically() - Method in class org.haphazard.gui.engine.FrameImage
 
flipVertically() - Method in class org.haphazard.gui.engine.Sprite
Creates a new sprite that is vertically flipped

G

GOLoadSaveTest - class org.haphazard.util.test.GOLoadSaveTest.
Tests the load/save functionality for graphical objects
GOLoadSaveTest() - Constructor for class org.haphazard.util.test.GOLoadSaveTest
Creates a new instance of LoadSaveTest
GeneralClothes - class org.haphazard.item.GeneralClothes.
This class contains all general information about clothes
GeneralClothes() - Constructor for class org.haphazard.item.GeneralClothes
Creates a new instance of Clothes
GeneralClothes(String) - Constructor for class org.haphazard.item.GeneralClothes
Creates a cloth with a specific name
GeneralItem - class org.haphazard.item.GeneralItem.
This class contains all general information about items
GeneralItem() - Constructor for class org.haphazard.item.GeneralItem
Creates a new item
GeneralItem(String) - Constructor for class org.haphazard.item.GeneralItem
Creates a new item with a specific name
GeneralSkill - class org.haphazard.character.GeneralSkill.
This class contains all general information about skills and attributes An attribute is a skill without a parent.
GeneralSkill(String) - Constructor for class org.haphazard.character.GeneralSkill
Creates a new instance of Skill
GeneralSkill(String, String) - Constructor for class org.haphazard.character.GeneralSkill
Creates a new instance of Skill
GlobalCombatEngine - class org.haphazard.combat.GlobalCombatEngine.
The combat engine for resolving combats
GlobalEffects - class org.haphazard.gui.engine.GlobalEffects.
GlobalEffects is a singleton to be used for effects as snow, rain and attacks
GlobalGUIController - class org.haphazard.system.action.GlobalGUIController.
 
GlobalGraphicalObjectParser - class org.haphazard.XML.GlobalGraphicalObjectParser.
An XML-handler for a DynamicGraphicalObject
GlobalGraphicalObjectParser() - Constructor for class org.haphazard.XML.GlobalGraphicalObjectParser
Creates a new instance of GlobalSkillParser
GlobalImageUtilities - class org.haphazard.gui.GlobalImageUtilities.
A class that handles loading of images and turning them to BufferedImage
GlobalImageUtilities() - Constructor for class org.haphazard.gui.GlobalImageUtilities
 
GlobalItem - class org.haphazard.item.GlobalItem.
Contains all general items and handling of them
GlobalItemParser - class org.haphazard.XML.GlobalItemParser.
An XML-handler for the Global Item list
GlobalJarUtilities - class org.haphazard.gui.GlobalJarUtilities.
Handles the parsing and loading of graphics.jar
GlobalMapParser - class org.haphazard.XML.GlobalMapParser.
An XML-handler for a DynamicGraphicalObject
GlobalMapParser() - Constructor for class org.haphazard.XML.GlobalMapParser
Creates a new instance of GlobalMapParser
GlobalMapUtilities - class org.haphazard.gui.engine.GlobalMapUtilities.
A singleton class that handles Maps
GlobalOptions - class org.haphazard.gui.GlobalOptions.
GlobalOptions are settings that are persistent between runs.
GlobalSkill - class org.haphazard.character.GlobalSkill.
A system wide list of all available skills and their descriptions
GlobalSkillParser - class org.haphazard.XML.GlobalSkillParser.
An XML-handler for the Global Skill list
GlobalSpriteParser - class org.haphazard.XML.GlobalSpriteParser.
An XML-handler for a DynamicGraphicalObject
GlobalSpriteParser() - Constructor for class org.haphazard.XML.GlobalSpriteParser
Creates a new instance of GlobalSkillParser
GlobalWorld - class org.haphazard.gui.engine.GlobalWorld.
Handles the world
GraphicOptimizer - class org.haphazard.util.GraphicOptimizer.
 
GraphicOptimizer() - Constructor for class org.haphazard.util.GraphicOptimizer
 
GraphicalObject - class org.haphazard.gui.engine.GraphicalObject.
Superclass for anything that can exist on a map
GraphicalObject() - Constructor for class org.haphazard.gui.engine.GraphicalObject
Creates a new graphical object
GraphicalObject(Sprite) - Constructor for class org.haphazard.gui.engine.GraphicalObject
The constructor updates the map
get(String) - Method in class org.haphazard.character.GlobalSkill
Gets a skill
get(String) - Method in class org.haphazard.item.GlobalItem
Gets an item
get(long) - Method in class org.haphazard.util.IDServer
Gets an object that has been assigned an id.
get(int) - Method in class org.haphazard.util.PriorityList
 
getActionType() - Method in class org.haphazard.system.action.CharacterAction
Returns the action that the character is currently performing
getAllClothes() - Method in class org.haphazard.character.body.BodyPart
Gets all the clothes the character is wearing
getArmorValue() - Method in class org.haphazard.character.body.BodyPart
Gets the total armor value of this part
getArmorValue() - Method in class org.haphazard.item.Clothes
Gets the protectiveness of this clothing
getArmorValue() - Method in class org.haphazard.item.GeneralClothes
Gets the protectiveness of this clothing
getAttackBonus() - Method in class org.haphazard.item.GeneralItem
Returns the attack bonus of the item
getAttackBonus() - Method in class org.haphazard.item.Item
Returns the attack bonus of the item
getAvailableFlippedHorizontallyImages() - Method in class org.haphazard.gui.GlobalImageUtilities
Gets the available images that has been flipped horizontally
getAvailableFlippedVerticallyImages() - Method in class org.haphazard.gui.GlobalImageUtilities
Gets the available images that has been flipped vertically
getAvailableImages() - Method in class org.haphazard.gui.GlobalImageUtilities
Gets the available loaded images
getAvailableSprites() - Method in class org.haphazard.gui.engine.GraphicalObject
Gets the available sprites
getBanditTimer() - Method in class org.haphazard.gui.GlobalOptions
Gets the time in ms that should elapse before a new bandit is spawned.
getBaseValue() - Method in class org.haphazard.character.Skill
Gets the base value of this skill
getBodyTree() - Method in class org.haphazard.character.Character
Gets a treeview of the body
getBoundingBox(Point) - Method in class org.haphazard.gui.engine.Frame
Return the bounding box on the screen of this image.
getBoundingBox(Point) - Method in class org.haphazard.gui.engine.FrameImage
 
getBoundingBox(Point) - Method in class org.haphazard.gui.engine.GraphicalObject
Return the bounding box on the screen of this Frame of the Sprite that is displayed.
getBoundingBox(Point) - Method in class org.haphazard.gui.engine.Sprite
Return the bounding box on the screen of this image.
getBufferedImage(String) - Method in class org.haphazard.gui.GlobalImageUtilities
Create Image from a file, then turn that into a BufferedImage.
getBufferedImage(String, int, int) - Method in class org.haphazard.gui.GlobalImageUtilities
Create Image from a file, then turn that into a BufferedImage.
getButton() - Method in class org.haphazard.gui.dialog.MsgBox
Gets the last button pressed
getCharacter() - Method in class org.haphazard.system.action.CharacterAction
Gets the character that is doing these actions
getClip() - Method in class org.haphazard.gui.engine.FrameImage
 
getContainerDimension() - Method in class org.haphazard.character.inventory.Inventory
Gets the total volume of the container
getContainerDimension() - Method in class org.haphazard.item.Container
Returns the containers volume
getContainerDimension() - Method in interface org.haphazard.item.Containing
Gets the total volume of the container
getContainerDimension() - Method in class org.haphazard.item.GeneralItem
Gets this items containing capacity
getContainerDimension() - Method in class org.haphazard.item.Item
Gets the total volume of the container
getContainerSpecializationSlots() - Method in class org.haphazard.item.GeneralItem
Returns the number of items this container can hold
getContainerSpecializations() - Method in class org.haphazard.item.GeneralItem
Gets all the specializations this item has
getContainerWeight() - Method in class org.haphazard.character.inventory.Inventory
Gets the total weight of the container
getContainerWeight() - Method in class org.haphazard.item.Container
Gets the total weight of the container
getContainerWeight() - Method in interface org.haphazard.item.Containing
Gets the total weight of the container
getContainerWeight() - Method in class org.haphazard.item.Item
Gets the total weight of the container
getController() - Method in class org.haphazard.character.Character
Gets the controller of this character
getCritical() - Method in class org.haphazard.character.body.BodyPart
Gets how critical this part is The higher the more critical the part is
getCritical() - Method in class org.haphazard.character.body.Head
Gets how critical this area is
getCurrentMap() - Method in class org.haphazard.gui.engine.GlobalWorld
Gets the current map
getDamageBonus() - Method in class org.haphazard.item.GeneralItem
Gets the items damage bonus The damage bonus is dependant on the items weight and if it is solid and has edges
getDamageBonus() - Method in class org.haphazard.item.Item
Gets the items damage bonus The damage bonus is dependant on the items weight and if it is solid and has edges
getDefenceBonus() - Method in class org.haphazard.item.GeneralItem
Returns the defence bonus of the item
getDefenceBonus() - Method in class org.haphazard.item.Item
Returns the defence bonus of the item
getDescription() - Method in class org.haphazard.character.GeneralSkill
Gets the description of the skill
getDescription() - Method in class org.haphazard.character.Skill
Gets the desription of the skill
getDescription() - Method in class org.haphazard.gui.engine.GraphicalObject
returns the description for this graphical object
getDescription() - Method in class org.haphazard.item.Item
Gets the description of the item
getDimension() - Method in class org.haphazard.gui.engine.GraphicalObject
Gets this objects dimension
getDimension() - Method in class org.haphazard.gui.engine.Map
Gets the dimension of this map
getDimension() - Method in class org.haphazard.item.Item
Gets this objects dimension
getDisplayTime() - Method in class org.haphazard.gui.engine.Frame
Returns the display time of this frame in milliseconds
getElevation() - Method in class org.haphazard.gui.engine.Tile
 
getEquipmentPanel() - Method in class org.haphazard.gui.MainFrame
gets the equip panel
getEquipmentWeight() - Method in class org.haphazard.character.Character
Gets the weight of the characters equipment
getFacing() - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Gets the facing of this object
getFirst() - Method in class org.haphazard.util.PriorityList
 
getFrame() - Method in class org.haphazard.editor.FrameEditor
 
getFrameImage() - Method in class org.haphazard.editor.FrameImageEditor
 
getFrameImages() - Method in class org.haphazard.gui.engine.Frame
Returns the array of FrameImage that this Frame contains.
getFrames() - Method in class org.haphazard.gui.engine.Sprite
Return the array of frames that this Sprite has.
getFreeSpecializationSlots() - Method in class org.haphazard.character.inventory.Inventory
 
getFreeSpecializationSlots() - Method in class org.haphazard.item.Container
Gets the number of free slots
getFreeSpecializationSlots() - Method in interface org.haphazard.item.Containing
Gets the number of free slots
getFreeSpecializationSlots() - Method in class org.haphazard.item.Item
Gets the number of free slots
getFreeVolume() - Method in class org.haphazard.character.inventory.Inventory
Gets the total free volume of the inventory
getFreeVolume() - Method in class org.haphazard.item.Container
Gets the total free volume of the inventory
getFreeVolume() - Method in interface org.haphazard.item.Containing
Gets the total free volume of the inventory
getFreeVolume() - Method in class org.haphazard.item.Item
Gets the total free volume of the inventory
getGender() - Method in class org.haphazard.character.Character
Gets the gender of the character
getGeneralItem() - Method in class org.haphazard.item.Item
Gets the general item of this type from Global Items
getGraphics() - Method in class org.haphazard.gui.GlobalOptions
Gets the jar-file alt. directory where the graphics should be located
getHeader(String, String) - Static method in class org.haphazard.XML.XML
Gets the header for the xml-file
getHeight() - Method in class org.haphazard.util.Dimension3D
Gets the height
getHost() - Method in class org.haphazard.gui.dialog.ConnectionDialog
Gets the host the user put in
getImage() - Method in class org.haphazard.gui.engine.FrameImage
Gets the image
getInputStream(String) - Method in class org.haphazard.gui.GlobalJarUtilities
Opens an input stream from an jar file entry
getInstance() - Static method in class org.haphazard.XML.CharacterParser
Gets an instance of the global skill parser
getInstance() - Static method in class org.haphazard.XML.GlobalItemParser
Gets an instance of the global item parser
getInstance() - Static method in class org.haphazard.XML.GlobalSkillParser
Gets an instance of the global skill parser
getInstance() - Static method in class org.haphazard.character.GlobalSkill
Gets the instance of GlobalSkill
getInstance() - Static method in class org.haphazard.combat.GlobalCombatEngine
Gets the only instance of the engine
getInstance() - Static method in class org.haphazard.editor.Editor
 
getInstance() - Static method in class org.haphazard.gui.GlobalImageUtilities
Gets an instance of the image utilities
getInstance() - Static method in class org.haphazard.gui.GlobalJarUtilities
Gets an instance of the global graphics utilities
getInstance() - Static method in class org.haphazard.gui.GlobalOptions
Gets an instance of this object
getInstance() - Static method in class org.haphazard.gui.MainFrame
Gets the instance of the main frame
getInstance() - Static method in class org.haphazard.gui.engine.GlobalEffects
Returns the statical instance of this object
getInstance() - Static method in class org.haphazard.gui.engine.GlobalMapUtilities
Return the instance of the GlobalMapUtilities.
getInstance() - Static method in class org.haphazard.gui.engine.GlobalWorld
Returns an instance of the world
getInstance() - Static method in class org.haphazard.item.GlobalItem
Gets the instance of GlobalItem
getInstance() - Static method in class org.haphazard.server.Server
Gets the instance of the server
getInstance() - Static method in class org.haphazard.system.action.GlobalGUIController
 
getInstance() - Static method in class org.haphazard.util.IDServer
Gets the single instance of the ID server
getInventoryTree() - Method in class org.haphazard.character.Character
Gets a treeview of the inventory
getInventoryVolume() - Method in class org.haphazard.character.Character
Gets the free volume of the characters inventory
getInventoryWeight() - Method in class org.haphazard.character.Character
Gets this characters inventory weight
getItem() - Method in class org.haphazard.character.body.Arm
Gets the item held in this hand
getItems() - Method in class org.haphazard.gui.engine.Tile
Gets the items on this tile
getItemsOnGround() - Method in class org.haphazard.character.Character
Gets the items on the tile the character is standing on
getLast() - Method in class org.haphazard.util.PriorityList
 
getLastResult() - Method in class org.haphazard.dice.DicePool
Gets the last rolled result
getLength() - Method in class org.haphazard.util.Dimension3D
Gets the length
getLength() - Method in class org.haphazard.util.Vector3D
Gets the length of this vector
getLevel() - Method in class org.haphazard.item.Clothes
Gets the layer level of this cloth
getLevel() - Method in class org.haphazard.item.GeneralClothes
Returns the level of this cloth The level denotes how far out the cloth is worn, a character cannot wear two clothes of the same level
getLink() - Method in class org.haphazard.gui.engine.FrameImage
Returns this image URL
getList() - Method in class org.haphazard.character.GlobalSkill
Gets the whole slew of skills in a nice list Only the name is listed
getLocation() - Method in class org.haphazard.character.body.BodyPart
Gets the location of this part
getLocation() - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Finds the tile the character currently resides in
getMap(String) - Method in class org.haphazard.gui.engine.GlobalWorld
Gets any of all the defined maps
getMap() - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Gets the map the character currently resides on
getMapObject() - Method in class org.haphazard.XML.GlobalMapParser
Gets the loaded graphical object
getMiddlePixel() - Method in class org.haphazard.gui.engine.FrameImage
 
getMirrorName(String) - Method in class org.haphazard.gui.engine.Sprite
Gets this images mirror name, or null if it has none
getMirrorPixel() - Method in class org.haphazard.gui.engine.FrameImage
 
getName() - Method in class org.haphazard.character.GeneralSkill
Gets the name of the skill
getName() - Method in class org.haphazard.character.Skill
Gets the name of the skill
getName() - Method in class org.haphazard.character.body.BodyPart
Returns the name of this bodypart
getName() - Method in class org.haphazard.gui.engine.GraphicalObject
Gets the name of the graphical object
getName() - Method in class org.haphazard.gui.engine.Map
returns the name of this map
getName() - Method in class org.haphazard.gui.engine.Sprite
Gets this sprites name
getName() - Method in class org.haphazard.item.Item
Returns the type of the item
getNextKey() - Method in class org.haphazard.gui.handler.ClientInputHandler
Gets the next key event from the buffer, if there exists any
getNextKey() - Method in class org.haphazard.gui.handler.ServerInputHandler
Gets the next key event from the buffer, if there exists any
getNextMessage() - Method in class org.haphazard.XML.MessageHandler
Gets the next message in the message buffer
getNotResettedSprite(String) - Method in class org.haphazard.gui.engine.GraphicalObject
Gets a specific sprite that is reseted.
getOppositeDirection(Point3D) - Static method in class org.haphazard.gui.engine.GlobalWorld
Returns the opposite direction
getParent() - Method in class org.haphazard.character.GeneralSkill
Gets the parent of this skill
getParent() - Method in class org.haphazard.character.Skill
Gets the parent of the skill
getParts() - Method in class org.haphazard.XML.Message
 
getPenalty() - Method in class org.haphazard.character.Character
Gets the characters penalty on rolls depending on wounds, weight etc
getPenalty() - Method in class org.haphazard.character.body.BodyPart
Gets the wound penalty of this body part
getPlan(Point3D, Point3D) - Method in class org.haphazard.gui.engine.PathPlanner
Plans a path with waypoints.
getPort() - Method in class org.haphazard.gui.GlobalOptions
Gets the time in ms that should elapse before a new bandit is spawned.
getPort() - Method in class org.haphazard.gui.dialog.ConnectionDialog
Gets the port to connect on
getPrimaryWeapon() - Method in class org.haphazard.character.Character
Gets the characters primary weapon
getPronoun() - Method in class org.haphazard.character.Character
Returns a proper pronoun to use in any textual references
getResettedSprite(String) - Method in class org.haphazard.gui.engine.GraphicalObject
Gets a specific sprite that is resetted.
getRestrictions() - Method in class org.haphazard.item.GeneralItem
Gets a vector with the restrictions for equipping this object.
getRestrictions() - Method in class org.haphazard.item.Item
Gets a vector with the restrictions for equipping this object.
getSelectedNode() - Method in class org.haphazard.gui.dialog.component.SkillTree
Gets the name of the selected skill
getSkill() - Method in class org.haphazard.item.Item
Gets the attack skill of the item
getSkillList() - Method in class org.haphazard.character.Character
 
getSkillTree() - Method in class org.haphazard.character.Character
Gets a tree of skills
getSprite() - Method in class org.haphazard.editor.SpriteEditor
 
getSprites() - Method in class org.haphazard.XML.GlobalSpriteParser
Gets the loaded graphical object
getStaticBufferedImage(int, int, int) - Static method in class org.haphazard.gui.GlobalImageUtilities
 
getTile(Point3D) - Method in class org.haphazard.gui.engine.Map
Gets the tile for a certain location
getTileDimension() - Method in class org.haphazard.gui.engine.Map
Returns the dimension of the tiles in this Map.
getTreeNode() - Method in class org.haphazard.character.body.Arm
Gets a node view over every thing in this bodypart
getTreeNode() - Method in class org.haphazard.character.body.BodyPart
Gets a node view over every thing in this bodypart
getTreeNode() - Method in class org.haphazard.character.inventory.Inventory
Gets the treenode of the containing item
getTreeNode() - Method in class org.haphazard.item.Container
Gets the treenode of the containing item
getTreeNode() - Method in interface org.haphazard.item.Containing
Gets the treenode of the containing item
getTreeNode() - Method in class org.haphazard.item.Item
Gets the treenode of the item
getURL(String) - Method in class org.haphazard.gui.GlobalJarUtilities
Gets an URL to an entry in the jar file
getValue(String) - Method in class org.haphazard.character.Character
Gets a value of a skill
getVolume() - Method in class org.haphazard.util.Dimension3D
Gets the volume of this container, always positive
getWeight() - Method in class org.haphazard.gui.engine.GraphicalObject
Gets the weight of the item
getWeight() - Method in class org.haphazard.item.Item
Gets the weight of the item
getWidth() - Method in class org.haphazard.util.Dimension3D
Gets the width
getWildDieStatus() - Method in class org.haphazard.dice.DicePool
Gets the wild die status (how many times it has come up)
getWound() - Method in class org.haphazard.character.body.BodyPart
Gets the maximum type of wound this bodypart has
getWoundPenalty() - Method in class org.haphazard.character.Character
Gets the total penalty from wounds
getWoundStatus() - Method in class org.haphazard.character.Character
Gets a percentage of just how wounded the character is 1.0 is perfectly healthy, 0 is atleast unconscious
getZ() - Method in class org.haphazard.util.Point3D
Gets the z-coordinate

H

Head - class org.haphazard.character.body.Head.
A very important bodypart
Head() - Constructor for class org.haphazard.character.body.Head
Creates a new instance of Head
Head(String) - Constructor for class org.haphazard.character.body.Head
Creates a head with a specific name
hasEdges(boolean) - Method in class org.haphazard.item.GeneralItem
Sets if the item has edges
hasEdges() - Method in class org.haphazard.item.GeneralItem
Checks if the item has edges
hasEdges() - Method in class org.haphazard.item.Item
Checks if the item has edges
hasMessage() - Method in class org.haphazard.XML.MessageHandler
Checks if this action has waiting messages
hasMirror() - Method in class org.haphazard.gui.engine.Sprite
Checks if this sprite has a mirror image
heal(int) - Method in class org.haphazard.character.Character
Checks the healing process of the character This function should be changed when time is introduced, wounds should then be marked with a timestamp and logged how healing proceeds
heal() - Method in class org.haphazard.character.body.BodyPart
Heals the part one step towards healthy
height - Variable in class org.haphazard.util.Dimension3D
The height dimension; negative values can be used.

I

IDServer - class org.haphazard.util.IDServer.
Controls and keeps track of all known ids of the world.
INDENT - Static variable in class org.haphazard.XML.XML
A String with empty spaces to facilitate the indentation of a generated file
INFORMATION - Static variable in class org.haphazard.gui.MainFrame
 
IOHandler - class org.haphazard.XML.IOHandler.
 
IOHandler(MessageHandler) - Constructor for class org.haphazard.XML.IOHandler
Creates a new instance of IOHandler
Inventory - class org.haphazard.character.inventory.Inventory.
Convenience class for handling the inventory
Inventory() - Constructor for class org.haphazard.character.inventory.Inventory
Creates a new instance of Inventory
InventoryAlgorithm - interface org.haphazard.character.inventory.InventoryAlgorithm.
Interface for algorithms used to fit things in the inventory
Item - class org.haphazard.item.Item.
A class that denotes an item in the world
Item() - Constructor for class org.haphazard.item.Item
Creates an item
Item(String) - Constructor for class org.haphazard.item.Item
Creates an item of a certain type
id - Variable in class org.haphazard.XML.Message
 
id - Variable in class org.haphazard.gui.engine.GraphicalObject
A unique id for the object
indent(int) - Static method in class org.haphazard.XML.XML
Fixes indentation in the string
init() - Method in class org.haphazard.editor.Editor
 
init(JPanel) - Method in class org.haphazard.gui.GlobalImageUtilities
Sets the owning drawing area for images
init(JFrame, String) - Method in class org.haphazard.gui.GlobalOptions
Initiates this object
init() - Method in class org.haphazard.gui.engine.GlobalWorld
Initiates the world and loads all stuff
initExtraComponents() - Method in class org.haphazard.editor.FrameEditor
 
initExtraComponents() - Method in class org.haphazard.editor.FrameImageEditor
 
initExtraComponents() - Method in class org.haphazard.editor.SpriteEditor
 
insert(GeneralSkill) - Method in class org.haphazard.gui.dialog.component.SkillTree
Inserts a skill at its correct place in the tree
isAnimated() - Method in class org.haphazard.gui.engine.Sprite
A check to se if this sprites contains a animation ( = more than one frame )
isAnimationTerminated() - Method in class org.haphazard.gui.engine.Sprite
Checks if the animation is finished (i.e. the sprited displays the last frame)
isContainer(boolean) - Method in class org.haphazard.item.GeneralItem
Sets if this item is a container or not
isContainer() - Method in class org.haphazard.item.GeneralItem
Checks if this item is a container
isContainer() - Method in class org.haphazard.item.Item
Checks if this item is a container
isDead() - Method in class org.haphazard.character.Character
Checks if the character is dead
isDefaultSpriteDisplayed() - Method in class org.haphazard.gui.engine.GraphicalObject
checks if the defaultSprite is displayed.
isHit(int) - Method in class org.haphazard.character.body.BodyPart
Checks if a location is hit
isIncapacitated() - Method in class org.haphazard.character.Character
Checks if the character is incapacitated
isLoop() - Method in class org.haphazard.gui.engine.Sprite
 
isMirror(boolean) - Method in class org.haphazard.gui.engine.Sprite
Sets if this sprite is a generated mirror image
isMirror() - Method in class org.haphazard.gui.engine.Sprite
Checks if this sprite is a generated mirror image If it is generated the sprite will not generate any XML info on save
isOK() - Method in class org.haphazard.gui.dialog.ConnectionDialog
Checks if the user pressed ok
isOnMap(Point3D) - Method in class org.haphazard.gui.engine.Map
Checks if a point is within the map
isOnMap(int, int) - Method in class org.haphazard.gui.engine.Map
Checks if a point is within the map
isPrimary() - Method in class org.haphazard.character.body.Arm
Checks if this arm is a primary arm
isPrimary() - Method in class org.haphazard.character.body.BodyPart
Checks if this is a primary bodypart Useful for example hands
isRunning(boolean) - Method in interface org.haphazard.system.ai.Brain
 
isRunning(boolean) - Method in class org.haphazard.system.ai.SolitaryHunterKiller
 
isSolid(boolean) - Method in class org.haphazard.item.GeneralItem
Sets if the item is solid
isSolid() - Method in class org.haphazard.item.GeneralItem
Checks if the item is solid
isSolid() - Method in class org.haphazard.item.Item
Checks if the item is solid
isSpecialization(Item) - Method in class org.haphazard.character.inventory.Inventory
 
isSpecialization(Item) - Method in class org.haphazard.item.Container
Checks if an item is a specialization of this container
isSpecialization(Item) - Method in interface org.haphazard.item.Containing
Checks if an item is a specialization of this container
isSpecialization(Item) - Method in class org.haphazard.item.Item
Checks if an item is a specialization of this container
isTileFlat() - Method in class org.haphazard.gui.engine.Tile
 
isWearing(Clothes) - Method in class org.haphazard.character.body.BodyPart
Checks if the character is wearing the specific clothes

K

keyPressed(KeyEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback when a key is pressed
keyPressed(KeyEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback when a key is pressed
keyReleased(KeyEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback when a key is released
keyReleased(KeyEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback when a key is released
keyTyped(KeyEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when a key is typed
keyTyped(KeyEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when a key is typed
killAllEnemies() - Method in class org.haphazard.gui.engine.GlobalWorld
 

L

Leg - class org.haphazard.character.body.Leg.
A simple implementation of a leg
Leg() - Constructor for class org.haphazard.character.body.Leg
Creates a new instance of Leg
Leg(String) - Constructor for class org.haphazard.character.body.Leg
Creates a new leg with a name
LoadSaveTest - class org.haphazard.util.test.LoadSaveTest.
Tests the load/save functionality
LoadSaveTest() - Constructor for class org.haphazard.util.test.LoadSaveTest
Creates a new instance of LoadSaveTest
length - Variable in class org.haphazard.util.Dimension3D
The length dimension; negative values can be used.
line(Point, Point) - Static method in class org.haphazard.gui.GlobalImageUtilities
 
load(InputStream) - Method in class org.haphazard.character.Character
Loads a character from a file
load(InputStream) - Method in class org.haphazard.character.GlobalSkill
Loads a global skill list from a file Clears the global skill list before load.
load(InputStream) - Method in class org.haphazard.gui.engine.GlobalMapUtilities
Loads a map
load(InputStream) - Method in class org.haphazard.gui.engine.GraphicalObject
Loads an object from a file
load(InputStream) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Loads an object from a file
load(InputStream) - Method in class org.haphazard.item.GlobalItem
Loads a global item list from a file Clears the global item list before load.
loadGraphicalObject(InputStream) - Method in class org.haphazard.gui.engine.GlobalEffects
The GlobalEffects contains a GraphicalObject that has several sprites.
loadInstance(InputStream) - Static method in class org.haphazard.gui.engine.GraphicalObject
Loads an instance of GraphicalObject
loadInstance(InputStream) - Static method in class org.haphazard.gui.engine.MoveableGraphicalObject
Loads an object from a file
loadInstance(InputStream) - Static method in class org.haphazard.item.GeneralClothes
Loads an instance of GraphicalObject
loadInstance(InputStream) - Static method in class org.haphazard.item.GeneralItem
Loads an instance of GraphicalObject

M

MOVE - Static variable in class org.haphazard.system.action.CharacterAction
 
MainFrame - class org.haphazard.gui.MainFrame.
This class containts the main GUI, the program starts from here.
ManageGlobalItem - class org.haphazard.editor.ManageGlobalItem.
Dialog for handling the global item list
ManageGlobalItem(Frame, boolean) - Constructor for class org.haphazard.editor.ManageGlobalItem
Creates new form CreateItem
ManageGlobalSkill - class org.haphazard.editor.ManageGlobalSkill.
Dialog for creating a skill
ManageGlobalSkill(Frame, boolean) - Constructor for class org.haphazard.editor.ManageGlobalSkill
Creates new form CreateSkill
Map - class org.haphazard.gui.engine.Map.
Handles a map of the world
Map(int, int) - Constructor for class org.haphazard.gui.engine.Map
Creates a new instance of Map
Map(int, int, String) - Constructor for class org.haphazard.gui.engine.Map
Creates a new instance of Map
MapTest - class org.haphazard.util.test.MapTest.
A test to check the functions of the Character class
MapTest() - Constructor for class org.haphazard.util.test.MapTest
Creates a new instance of MapTest
Message - class org.haphazard.XML.Message.
A class to hold a message
Message() - Constructor for class org.haphazard.XML.Message
 
MessageHandler - class org.haphazard.XML.MessageHandler.
 
MessageHandler() - Constructor for class org.haphazard.XML.MessageHandler
 
Monster - class org.haphazard.util.sample_character.Monster.
A sample evil monster
Monster() - Constructor for class org.haphazard.util.sample_character.Monster
Creates a new instance of Monster
MoveableGraphicalObject - class org.haphazard.gui.engine.MoveableGraphicalObject.
This class handles all the dynamic graphical objects like character or enemys
MoveableGraphicalObject() - Constructor for class org.haphazard.gui.engine.MoveableGraphicalObject
Default constructor
MoveableGraphicalObject(Sprite) - Constructor for class org.haphazard.gui.engine.MoveableGraphicalObject
The constructor that handles all initilization
MoveableGraphicalObject(String) - Constructor for class org.haphazard.gui.engine.MoveableGraphicalObject
The constructor that handles all initilization from a XML-file NOTE: This is using GlobalWorld.getCurrentMap() to set this object on the map so
MsgBox - class org.haphazard.gui.dialog.MsgBox.
 
MsgBox() - Constructor for class org.haphazard.gui.dialog.MsgBox
Creates new form MsgBox
mArmorValue - Variable in class org.haphazard.item.GeneralClothes
The protection received from this garment
mAttackBonus - Variable in class org.haphazard.item.GeneralItem
 
mCharacter - Variable in class org.haphazard.system.action.CharacterAction
 
mClothes - Variable in class org.haphazard.character.body.BodyPart
Clothes on this bodypart
mContainer - Variable in class org.haphazard.item.Item
A container (if the item can contain other things)
mController - Variable in class org.haphazard.system.action.Action
 
mDefaultSprite - Variable in class org.haphazard.gui.engine.GraphicalObject
The default look
mDefenceBonus - Variable in class org.haphazard.item.GeneralItem
 
mDescription - Variable in class org.haphazard.gui.engine.GraphicalObject
the description of the object
mDescriptionColor - Variable in class org.haphazard.gui.engine.GraphicalObject
The color of the description text
mDescriptionDisplayTime - Variable in class org.haphazard.gui.engine.GraphicalObject
The duration for displaying the description
mDescriptionStartTime - Variable in class org.haphazard.gui.engine.GraphicalObject
The time the description started displaying
mDimension - Variable in class org.haphazard.gui.engine.GraphicalObject
The volume of the object in cm x cm x cm
mElevation - Variable in class org.haphazard.gui.engine.Tile
 
mEnemy - Variable in class org.haphazard.gui.engine.GlobalWorld
Temporary variable to hold the evil twin(s)
mExecutionTime - Variable in class org.haphazard.system.action.Action
 
mFacing - Variable in class org.haphazard.gui.engine.MoveableGraphicalObject
 
mFogOfWarSpriteDisplayed - Variable in class org.haphazard.gui.engine.Tile
 
mFrameImages - Static variable in class org.haphazard.editor.FrameImageEditor
 
mFrames - Static variable in class org.haphazard.editor.FrameEditor
 
mFwackCount - Variable in class org.haphazard.gui.MainFrame
 
mGameTimer - Variable in class org.haphazard.gui.MainFrame
 
mGraphicalEffects - Variable in class org.haphazard.gui.engine.Tile
 
mImage - Variable in class org.haphazard.gui.engine.FrameImage
 
mInFogOfWar - Variable in class org.haphazard.gui.engine.Tile
 
mLevel - Variable in class org.haphazard.item.GeneralClothes
 
mLink - Variable in class org.haphazard.gui.engine.GraphicalObject
Where the object was loaded from originally
mLink - Variable in class org.haphazard.gui.engine.Map
 
mLink - Variable in class org.haphazard.gui.engine.Sprite
A String denoting where this Sprite were loaded from
mLocation - Variable in class org.haphazard.gui.engine.MoveableGraphicalObject
 
mMap - Variable in class org.haphazard.gui.engine.MoveableGraphicalObject
 
mMessageBuffer - Variable in class org.haphazard.XML.MessageHandler
 
mName - Variable in class org.haphazard.gui.engine.GraphicalObject
The name of the object
mName - Variable in class org.haphazard.item.Item
The name of the item
mObject - Variable in class org.haphazard.gui.engine.Tile
 
mQuality - Variable in class org.haphazard.item.Item
 
mRestrictions - Variable in class org.haphazard.item.GeneralItem
The restrictions of this item
mReusedEnemies - Variable in class org.haphazard.gui.engine.GlobalWorld
 
mSkill - Variable in class org.haphazard.item.GeneralItem
 
mSlots - Variable in class org.haphazard.character.body.BodyPart
How large the part is (ie. how easy it is to hit)
mSocket - Variable in class org.haphazard.XML.Message
 
mSpeedVector - Variable in class org.haphazard.gui.engine.MoveableGraphicalObject
 
mSpriteDisplayed - Variable in class org.haphazard.gui.engine.GraphicalObject
 
mSpriteDisplayed - Variable in class org.haphazard.gui.engine.Tile
 
mSprites - Static variable in class org.haphazard.editor.SpriteEditor
 
mSprites - Variable in class org.haphazard.gui.engine.GraphicalObject
 
mStaticObject - Variable in class org.haphazard.gui.engine.Tile
 
mSubWorld - Variable in class org.haphazard.gui.engine.Tile
 
mSubWorldEntrance - Variable in class org.haphazard.gui.engine.Tile
 
mTarget - Variable in class org.haphazard.system.action.CharacterAction
 
mTimeStarted - Variable in class org.haphazard.system.action.Action
 
mTreadable - Variable in class org.haphazard.gui.engine.Tile
 
mUseFogOfWar - Variable in class org.haphazard.gui.engine.MoveableGraphicalObject
 
mValue - Variable in class org.haphazard.character.Skill
 
mWeight - Variable in class org.haphazard.gui.engine.GraphicalObject
The weight of the object in grams
mWorld - Variable in class org.haphazard.system.action.CharacterAction
 
main(String[]) - Static method in class org.haphazard.editor.Editor
 
main(String[]) - Static method in class org.haphazard.editor.ManageGlobalItem
Main function to test the dialog
main(String[]) - Static method in class org.haphazard.editor.ManageGlobalSkill
Main function to test the dialog
main(String[]) - Static method in class org.haphazard.gui.MainFrame
The function that starts it all
main(String[]) - Static method in class org.haphazard.gui.dialog.AboutDialog
 
main(String[]) - Static method in class org.haphazard.gui.dialog.ConnectionDialog
 
main(String[]) - Static method in class org.haphazard.server.Server
 
main(String[]) - Static method in class org.haphazard.util.GraphicOptimizer
Function to call if you want to run the test
main(String[]) - Static method in class org.haphazard.util.test.CharacterTest
Function to call if you want to run the test
main(String[]) - Static method in class org.haphazard.util.test.CombatTest
Starts the test
main(String[]) - Static method in class org.haphazard.util.test.GOLoadSaveTest
Starts the test
main(String[]) - Static method in class org.haphazard.util.test.LoadSaveTest
Starts the test
main(String[]) - Static method in class org.haphazard.util.test.MapTest
Function to call if you want to run the test
moreKeys() - Method in class org.haphazard.gui.handler.ClientInputHandler
Checks if there are more keys to process
moreKeys() - Method in class org.haphazard.gui.handler.ServerInputHandler
Checks if there are more keys to process
mouseClicked(MouseEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when a mouse is clicked
mouseClicked(MouseEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when a mouse is clicked
mouseEntered(MouseEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when the mouse enters the components space
mouseEntered(MouseEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when the mouse enters the components space
mouseExited(MouseEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when the component exists this components space
mouseExited(MouseEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when the component exists this components space
mousePressed(MouseEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when the mouse is pressed
mousePressed(MouseEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when the mouse is pressed
mouseReleased(MouseEvent) - Method in class org.haphazard.gui.handler.ClientInputHandler
Callback for when a mouse button has been released
mouseReleased(MouseEvent) - Method in class org.haphazard.gui.handler.ServerInputHandler
Callback for when a mouse button has been released
move(Point3D) - Method in class org.haphazard.system.action.CharacterAction
Makes the character move
move(Vector3D) - Method in class org.haphazard.system.action.CharacterAction
Makes the character move

N

NE_DIRECTION - Static variable in class org.haphazard.gui.engine.GlobalWorld
 
NOTHING - Static variable in class org.haphazard.system.action.CharacterAction
 
NULLVECTOR - Static variable in class org.haphazard.util.Vector3D
 
NW_DIRECTION - Static variable in class org.haphazard.gui.engine.GlobalWorld
 
name - Variable in class org.haphazard.gui.engine.Frame
 
name - Variable in class org.haphazard.gui.engine.FrameImage
 
nl() - Static method in class org.haphazard.XML.XML
Gets the systems newline character

O

OK_CANCEL - Static variable in class org.haphazard.gui.dialog.MsgBox
 
optimize() - Method in class org.haphazard.gui.engine.Frame
Optimizes the clipping box for all images in this frame
optimize() - Method in class org.haphazard.gui.engine.FrameImage
 
optimize() - Method in class org.haphazard.gui.engine.GraphicalObject
Optimizes the clipping rectangle of all sprites
optimize() - Method in class org.haphazard.gui.engine.Map
optimize this ground by drawing all non-animated tiles to a BufferedImage
optimize() - Method in class org.haphazard.gui.engine.Sprite
Optimizes this Sprite for better graphics performance
org.haphazard.XML - package org.haphazard.XML
Contains functions to load/save files in the XML format.
org.haphazard.character - package org.haphazard.character
Everything needed to create and keep your own character
org.haphazard.character.body - package org.haphazard.character.body
Classdefinitions for bodyparts that make up a characters body
org.haphazard.character.inventory - package org.haphazard.character.inventory
The class for handling the inventory and different algorithms to manage it org.haphazard.combat - package org.haphazard.combat
The Haphazard combat engine
org.haphazard.dice - package org.haphazard.dice
Contains an implementation of randomness
org.haphazard.editor - package org.haphazard.editor
 
org.haphazard.gui - package org.haphazard.gui
The graphical user interface contains all functionality for user interaction
org.haphazard.gui.dialog - package org.haphazard.gui.dialog
Contains all dialogs used by MainFrame
org.haphazard.gui.dialog.component - package org.haphazard.gui.dialog.component
Specialized components to use in dialog specification
org.haphazard.gui.engine - package org.haphazard.gui.engine
The 2D graphical engine of Haphazard
org.haphazard.gui.handler - package org.haphazard.gui.handler
Global handlers for example mouse and keyboard
org.haphazard.item - package org.haphazard.item
Classes for handling and keeping track of different items
org.haphazard.server - package org.haphazard.server
 
org.haphazard.system.action - package org.haphazard.system.action
 
org.haphazard.system.ai - package org.haphazard.system.ai
 
org.haphazard.util - package org.haphazard.util
Contains utilities for testing
org.haphazard.util.sample_character - package org.haphazard.util.sample_character
Implementes a few sample characters to use for testing
org.haphazard.util.test - package org.haphazard.util.test
Implements tests to run to see that everything works as specified

P

PathPlanner - class org.haphazard.gui.engine.PathPlanner.
 
PathPlanner() - Constructor for class org.haphazard.gui.engine.PathPlanner
Creates a new instance of PathPlanner
Point3D - class org.haphazard.util.Point3D.
A point in 3D space
Point3D() - Constructor for class org.haphazard.util.Point3D
Creates a new Point3D with the coordinates {0,0,0}
Point3D(double, double, double) - Constructor for class org.haphazard.util.Point3D
Creates a new instance of Point3D
PopupActionMenu - class org.haphazard.gui.dialog.PopupActionMenu.
 
PopupActionMenu() - Constructor for class org.haphazard.gui.dialog.PopupActionMenu
 
PriorityList - class org.haphazard.util.PriorityList.
 
PriorityList() - Constructor for class org.haphazard.util.PriorityList
Creates a new instance of PriorityList
paint(Graphics2D) - Method in class org.haphazard.system.action.GlobalGUIController
Paints the component using the graphics specified
paintBackground(Graphics2D, int, int) - Method in class org.haphazard.gui.engine.Map
This draws the ground to a Graphics2d
paintComponent(Graphics2D, Map, Point) - Method in class org.haphazard.character.Character
paints the component on the screen.
paintComponent(Graphics) - Method in class org.haphazard.gui.dialog.EquipPanel
Paints this component
paintComponent(Graphics) - Method in class org.haphazard.gui.dialog.MsgBox
 
paintComponent(Graphics) - Method in class org.haphazard.gui.dialog.SkillPanel
Paints this component
paintComponent(Graphics2D, Point) - Method in class org.haphazard.gui.engine.Frame
Paint this component
paintComponent(Graphics2D, Point) - Method in class org.haphazard.gui.engine.FrameImage
 
paintComponent(Graphics2D, int, int) - Method in class org.haphazard.gui.engine.GlobalWorld
Paints the world
paintComponent(Graphics2D, Map, Point) - Method in class org.haphazard.gui.engine.GraphicalObject
Paints the component
paintComponent(Graphics2D, int, int) - Method in class org.haphazard.gui.engine.Map
Paints the map
paintComponent(Graphics2D, Map, Point) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
paints the component on the screen.
paintComponent(Graphics2D, Map, Vector, Vector, Point) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
paints the component on the screen.
paintComponent(Graphics2D, Point) - Method in class org.haphazard.gui.engine.Sprite
Paint this Sprite on the screen-coordinate
paintComponent(Graphics2D, Point, boolean, int) - Method in class org.haphazard.gui.engine.Tile
 
perform() - Method in class org.haphazard.system.action.Action
Performs the action
perform() - Method in class org.haphazard.system.action.CharacterAction
Performs the action
perform() - Method in class org.haphazard.system.action.Controller
 
perform() - Method in class org.haphazard.system.action.GlobalGUIController
 
performAttack() - Method in class org.haphazard.system.action.CharacterAction
Performs the attack
performAttack() - Method in class org.haphazard.system.action.Controller
 
performAttack() - Method in class org.haphazard.system.action.GlobalGUIController
 
performCarry() - Method in class org.haphazard.system.action.CharacterAction
Performs carry
performCarry() - Method in class org.haphazard.system.action.Controller
 
performCarry() - Method in class org.haphazard.system.action.GlobalGUIController
 
performDeath() - Method in class org.haphazard.system.action.CharacterAction
Performs death
performDeath() - Method in class org.haphazard.system.action.Controller
 
performDeath() - Method in class org.haphazard.system.action.GlobalGUIController
 
performDefend() - Method in class org.haphazard.system.action.CharacterAction
 
performDefend() - Method in class org.haphazard.system.action.Controller
 
performDrop() - Method in class org.haphazard.system.action.CharacterAction
Performs drop
performDrop() - Method in class org.haphazard.system.action.Controller
 
performDrop() - Method in class org.haphazard.system.action.GlobalGUIController
 
performMove() - Method in class org.haphazard.system.action.CharacterAction
Performs the move action
performMove() - Method in class org.haphazard.system.action.Controller
 
performMove() - Method in class org.haphazard.system.action.GlobalGUIController
Overrides action performMove to fix camera location
performSay() - Method in class org.haphazard.system.action.CharacterAction
Performs say
performWear() - Method in class org.haphazard.system.action.CharacterAction
Performs wear
performWear() - Method in class org.haphazard.system.action.Controller
 
performWear() - Method in class org.haphazard.system.action.GlobalGUIController
 
processDay() - Method in class org.haphazard.character.Skill
Call when to prcess a day for updating and forgetting skills
processMouseEvent(MouseEvent) - Method in class org.haphazard.gui.MainFrame
Processes eventual mouse events
project(Point3D) - Method in class org.haphazard.gui.engine.Map
project the tile x and y coordinate to screen coordinate FIXME: add functionality to take care of elevated tiles
projectOn(Vector3D) - Method in class org.haphazard.util.Vector3D
Projects this vector onto another vector

R

REGULAR - Static variable in class org.haphazard.gui.MainFrame
 
Random - class org.haphazard.character.inventory.Random.
 
Random() - Constructor for class org.haphazard.character.inventory.Random
Creates a new instance of Random
RelaxedBestFit - class org.haphazard.character.inventory.RelaxedBestFit.
 
RelaxedBestFit() - Constructor for class org.haphazard.character.inventory.RelaxedBestFit
Creates a new instance of RelaxedBestFit
register(Action) - Method in class org.haphazard.gui.engine.GlobalWorld
Registers an action
remove() - Method in class org.haphazard.character.Character
Removes this character from play.
remove(String) - Method in class org.haphazard.character.GlobalSkill
removes a skill from the global skill list
remove(Item) - Method in class org.haphazard.character.inventory.Inventory
Removes an item from this container
remove(String) - Method in class org.haphazard.gui.dialog.component.SkillTree
Removes the skill from the tree
remove(Item) - Method in class org.haphazard.item.Container
Removes an item from this container
remove(Item) - Method in interface org.haphazard.item.Containing
Removes an item from this container
remove(Item) - Method in class org.haphazard.item.Item
Removes an item from this container
remove(long) - Method in class org.haphazard.util.IDServer
Removes a certain id from the server
remove(int) - Method in class org.haphazard.util.PriorityList
 
remove(Object) - Method in class org.haphazard.util.PriorityList
 
removeContainer(Containing) - Method in class org.haphazard.character.inventory.Inventory
Removes a container to the inventory
removeFirst() - Method in class org.haphazard.util.PriorityList
 
removeLast() - Method in class org.haphazard.util.PriorityList
 
resetAnimation() - Method in class org.haphazard.gui.engine.Sprite
Resets this sprites animation.
resetDisplayedSprite() - Method in class org.haphazard.gui.engine.GraphicalObject
Resets this DynamicGraphicalObject to displayed its defaultSprite
resolveEntity(String, String) - Method in class org.haphazard.XML.CharacterParser
Resolves which dtd file to use and creates an inputsource for this.
resolveEntity(String, String) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Resolves which dtd file to use and creates an inputsource for this.
resolveEntity(String, String) - Method in class org.haphazard.XML.GlobalItemParser
Resolves which dtd file to use and creates an inputsource for this.
resolveEntity(String, String) - Method in class org.haphazard.XML.GlobalMapParser
Resolves which dtd file to use and creates an inputsource for this.
resolveEntity(String, String) - Method in class org.haphazard.XML.GlobalSkillParser
Resolves which dtd file to use and creates an inputsource for this.
resolveEntity(String, String) - Method in class org.haphazard.XML.GlobalSpriteParser
Resolves which dtd file to use and creates an inputsource for this.
resolveExperience(String, int) - Method in class org.haphazard.character.Character
Resolves eventual experience
resolveHit(int, boolean) - Method in class org.haphazard.character.Character
Resolves the hit location and returns the BodyPart hit
roll(String, int, boolean) - Method in class org.haphazard.character.Character
Rolls a skill, removing eventual penalties
roll(int, int) - Method in class org.haphazard.character.GlobalSkill
Rolls a statistic
roll(int, int) - Method in class org.haphazard.dice.DicePool
Rolls the dicepool
roll() - Method in class org.haphazard.dice.Die
Rolls the created die
roll(int) - Static method in class org.haphazard.dice.Die
Static convenience function to roll a die quickly
run() - Method in class org.haphazard.XML.ConnectionHandler
 
run() - Method in class org.haphazard.XML.IOHandler
 
run() - Method in class org.haphazard.gui.engine.GlobalWorld
Starts the world thread
run() - Method in class org.haphazard.system.ai.SolitaryHunterKiller
 

S

SAY - Static variable in class org.haphazard.system.action.CharacterAction
 
SE_DIRECTION - Static variable in class org.haphazard.gui.engine.GlobalWorld
 
SW_DIRECTION - Static variable in class org.haphazard.gui.engine.GlobalWorld
 
Server - class org.haphazard.server.Server.
The game server start up file
Server() - Constructor for class org.haphazard.server.Server
Creates a new instance of Server
ServerInputHandler - class org.haphazard.gui.handler.ServerInputHandler.
 
ServerInputHandler() - Constructor for class org.haphazard.gui.handler.ServerInputHandler
Creates a new instance of hKeyHandler
Skill - class org.haphazard.character.Skill.
Denotes a skill that can be used by an character This class contains all specific information related to a skill.
Skill(String) - Constructor for class org.haphazard.character.Skill
Creates a new skill
Skill(String, int) - Constructor for class org.haphazard.character.Skill
Creates a new skill with a name and a value
Skill(String, int, int) - Constructor for class org.haphazard.character.Skill
Creates a new skill with a name and a value
SkillPanel - class org.haphazard.gui.dialog.SkillPanel.
 
SkillPanel() - Constructor for class org.haphazard.gui.dialog.SkillPanel
Creates new form SkillPanel
SkillTree - class org.haphazard.gui.dialog.component.SkillTree.
A component for showing nested skill trees
SkillTree(Vector) - Constructor for class org.haphazard.gui.dialog.component.SkillTree
Creates a new instance of SkillTree
SolitaryHunterKiller - class org.haphazard.system.ai.SolitaryHunterKiller.
Silly AI that hunts the first character in sight and try to maim it
SolitaryHunterKiller() - Constructor for class org.haphazard.system.ai.SolitaryHunterKiller
 
SolitaryHunterKiller(Controller) - Constructor for class org.haphazard.system.ai.SolitaryHunterKiller
 
SplashScreen - class org.haphazard.gui.dialog.SplashScreen.
A splash screen for showing load progress
SplashScreen() - Constructor for class org.haphazard.gui.dialog.SplashScreen
Creates a new splash screen
Sprite - class org.haphazard.gui.engine.Sprite.
A class for handling animated or non-animated graphics Note: Sprite = a non-moving object (though it can be moved, now) that may be animated.
Sprite(String, Frame[], boolean) - Constructor for class org.haphazard.gui.engine.Sprite
The constructor that inilize the variables.
Sprite(String, boolean) - Constructor for class org.haphazard.gui.engine.Sprite
This constructor can be used for XML-parsing.
SpriteCollectionEditor - class org.haphazard.editor.SpriteCollectionEditor.
 
SpriteCollectionEditor(Frame, boolean) - Constructor for class org.haphazard.editor.SpriteCollectionEditor
Creates new form SpriteCollectionEditor
SpriteEditor - class org.haphazard.editor.SpriteEditor.
 
SpriteEditor(Frame, boolean) - Constructor for class org.haphazard.editor.SpriteEditor
Creates new form SpriteEditor
SpriteEditor(Dialog, boolean) - Constructor for class org.haphazard.editor.SpriteEditor
Creates new form SpriteEditor
save(OutputStream) - Method in class org.haphazard.character.Character
Saves the character in an XML-file
save(OutputStream) - Method in class org.haphazard.character.GlobalSkill
Saves the global skill list in an XML-file
save(OutputStream) - Method in class org.haphazard.gui.engine.GraphicalObject
Saves the object in an XML-file
save(OutputStream) - Method in class org.haphazard.item.GlobalItem
Saves the global item list in an XML-file
say(String) - Method in class org.haphazard.character.Character
Makes the character say something
say(String) - Method in class org.haphazard.system.action.CharacterAction
The character exclaims something
screenStart - Variable in class org.haphazard.gui.engine.Map
if you ever want to start drawing from another pixel-location than 0,0,0
screenTileDimension - Variable in class org.haphazard.gui.engine.Map
how many tiles to draw on the screen do NOT set this to more than necessary
send(Message) - Method in class org.haphazard.XML.IOHandler
Sends a message through one or all sockets.
setAlgorithm(InventoryAlgorithm) - Method in class org.haphazard.character.inventory.Inventory
Sets the algorithm to be used for this inventory
setArmorValue(int) - Method in class org.haphazard.item.GeneralClothes
Sets the protectiveness of this clothing
setBaseValue(int) - Method in class org.haphazard.character.Skill
Sets the skills base value Only applicable to skills without a parent (interface stats)
setCharacter(Character) - Method in class org.haphazard.XML.CharacterParser
Sets the place to store all loaded information
setCharacter(Character) - Method in class org.haphazard.system.action.CharacterAction
Sets the character for this controller
setClip(Rectangle) - Method in class org.haphazard.gui.engine.FrameImage
 
setContainerDimension(Dimension3D) - Method in class org.haphazard.item.Container
Sets the dimension of the container
setContainerDimension(Dimension3D) - Method in class org.haphazard.item.GeneralItem
Sets the dimension of the container
setContainerSpecializationSlots(int) - Method in class org.haphazard.item.GeneralItem
Sets the number of specialized items the container can hold
setController(CharacterAction) - Method in class org.haphazard.character.Character
Sets the controller of this character
setController(Controller) - Method in interface org.haphazard.system.ai.Brain
 
setController(Controller) - Method in class org.haphazard.system.ai.SolitaryHunterKiller
 
setDamageBonus(int) - Method in class org.haphazard.item.GeneralItem
Sets the weapons damage bonus
setDefaultSprite(Sprite) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets the default sprite.
setDefaultSprite(String) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets what sprite should be displayed as default.
setDescription(String) - Method in class org.haphazard.character.GeneralSkill
Sets the description for this skill
setDescription(String) - Method in class org.haphazard.gui.engine.GraphicalObject
sets the description for this graphical object FIXME: format the string to a nice format .
setDimension(Dimension3D) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets this objects dimension
setDisplayTime(long) - Method in class org.haphazard.gui.engine.Frame
Gets the height of the image
setDocumentLocator(Locator) - Method in class org.haphazard.XML.CharacterParser
Sets the document locator.
setDocumentLocator(Locator) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Sets the document locator.
setDocumentLocator(Locator) - Method in class org.haphazard.XML.GlobalItemParser
Sets the document locator.
setDocumentLocator(Locator) - Method in class org.haphazard.XML.GlobalMapParser
Sets the document locator.
setDocumentLocator(Locator) - Method in class org.haphazard.XML.GlobalSkillParser
Sets the document locator.
setDocumentLocator(Locator) - Method in class org.haphazard.XML.GlobalSpriteParser
Sets the document locator.
setFacing(Point3D) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Makes the character face a point
setFile(String) - Method in class org.haphazard.gui.GlobalOptions
Sets the file this object should work against.
setFilter(Hashtable) - Method in class org.haphazard.XML.GlobalSpriteParser
Sets a filter for which sprites that should be laoded
setFogOfWar(Point3D, boolean) - Method in class org.haphazard.gui.engine.Map
Sets the fog of war on a specified coordinate
setFrameImages(Vector) - Method in class org.haphazard.gui.engine.Frame
Sets the images in this frame
setFrames(Vector) - Method in class org.haphazard.gui.engine.Sprite
This is used in the XML-parser
setGender(String) - Method in class org.haphazard.character.Character
Sets the gender of the character
setGraphicalObject(GraphicalObject) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Sets the object to load
setGraphics(File) - Method in class org.haphazard.gui.GlobalJarUtilities
Sets the input directory or graphics.jar for the graphic
setIOHandler(IOHandler) - Method in class org.haphazard.gui.engine.GlobalWorld
 
setImage(BufferedImage) - Method in class org.haphazard.gui.engine.FrameImage
 
setItem(Item) - Method in class org.haphazard.character.body.Arm
Sets the item held in this hand
setLength(double) - Method in class org.haphazard.util.Vector3D
Sets the length of this vector
setLevel(int) - Method in class org.haphazard.item.GeneralClothes
Sets the level of this cloth
setLink(String) - Method in class org.haphazard.gui.engine.FrameImage
 
setLocation(Point3D, Map) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Sets the characters location in the world
setLocation(double, double, double) - Method in class org.haphazard.util.Point3D
Sets the coordinates of this Point
setLoop(boolean) - Method in class org.haphazard.gui.engine.Sprite
Sets if this animation loops or not
setMap(Map) - Method in class org.haphazard.gui.engine.PathPlanner
Sets the path planners map
setMapObject(Map) - Method in class org.haphazard.XML.GlobalMapParser
Sets the object to load
setMiddlePixel(Point) - Method in class org.haphazard.gui.engine.FrameImage
 
setMirror(String, String) - Method in class org.haphazard.gui.engine.Sprite
Sets that this sprite has a mirror The actual mirror is generated when loading the sprite, if a mirror sprite is needed right away also use GlobalImageUtilities.flipHorizontally and GlobalImageUtilities.flipVertically
setMirrorPixel(Point) - Method in class org.haphazard.gui.engine.FrameImage
 
setName(String) - Method in class org.haphazard.character.GeneralSkill
Sets the name of the skill
setName(String) - Method in class org.haphazard.character.body.BodyPart
Sets the name of the part
setName(String) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets the name of the graphical object
setName(String) - Method in class org.haphazard.gui.engine.Sprite
Sets this sprites name;
setName(String) - Method in class org.haphazard.item.Item
Sets the type of item
setNaturalArmor(int) - Method in class org.haphazard.character.body.BodyPart
Sets the amount of natural armor this bodypart gives
setNaturalWeapon(Item) - Method in class org.haphazard.character.Character
Sets the characters natural weapon
setParent(String) - Method in class org.haphazard.character.GeneralSkill
Sets the parent skill/attribute of this skill This is used for determining values for characters that need to roll for a skill that they are lacking.
setParent(Skill) - Method in class org.haphazard.character.Skill
Sets the parent of this skill
setPrimary(boolean) - Method in class org.haphazard.character.body.Arm
Sets that the arm is a primary arm
setProgress(int, String) - Method in class org.haphazard.gui.dialog.SplashScreen
Sets the progress of the load
setSize(int, int) - Method in class org.haphazard.util.Dimension3D
Sets the size in two dimensions
setSize(int, int, int) - Method in class org.haphazard.util.Dimension3D
Sets the size of all dimensions
setSpecializationSlots(int) - Method in class org.haphazard.item.Container
Sets the number of specialized items the container can hold
setSpecializations(Vector) - Method in class org.haphazard.item.Container
Convenience function for setting all specializations at once
setSpeed(Vector3D) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Sets the characters speed
setSubWorld(String, Point3D, Point3D) - Method in class org.haphazard.gui.engine.Map
Sets a subWorld on a specific tile
setText(String, String, int) - Method in class org.haphazard.gui.dialog.MsgBox
 
setTile(Point3D, Tile) - Method in class org.haphazard.gui.engine.Map
Sets the tile for the location
setTileDimension(Dimension) - Method in class org.haphazard.gui.engine.Map
Set the size of the tiles in pixels
setTileSet(GraphicalObject) - Method in class org.haphazard.gui.engine.Map
Sets the GraphicalObject that contains the tiles
setTileValues(Point3D, Sprite, int, int[]) - Method in class org.haphazard.gui.engine.Map
Sets the values of a tile.
setToHit(int) - Method in class org.haphazard.character.body.BodyPart
Sets the to hit start value of the part
setVector(Point3D, Point3D) - Method in class org.haphazard.util.Vector3D
Creates a vector from origin to destination
setVector(Vector3D) - Method in class org.haphazard.util.Vector3D
Sets this vector to be equal to another vector
setWeight(int) - Method in class org.haphazard.gui.engine.GraphicalObject
Sets the weight of the item
sleep() - Method in class org.haphazard.XML.ConnectionHandler
 
source - Variable in class org.haphazard.XML.Message
 
spawn(Character) - Method in class org.haphazard.gui.engine.GlobalWorld
Temporary function to spawn a new unit
stamp() - Method in class org.haphazard.XML.Message
 
start(long) - Method in class org.haphazard.system.action.Action
Starts the action
start() - Method in interface org.haphazard.system.ai.Brain
Creates a new instance of Brain
startDocument() - Method in class org.haphazard.XML.CharacterParser
This method is called when the document is beginning the parse
startDocument() - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
This method is called when the document is beginning the parse
startDocument() - Method in class org.haphazard.XML.GlobalItemParser
This method is called when the document is beginning the parse
startDocument() - Method in class org.haphazard.XML.GlobalMapParser
This method is called when the document is beginning the parse
startDocument() - Method in class org.haphazard.XML.GlobalSkillParser
This method is called when the document is beginning the parse
startDocument() - Method in class org.haphazard.XML.GlobalSpriteParser
This method is called when the document is beginning the parse
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.CharacterParser
Is called at the start of parsing an element
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
Is called at the start of parsing an element
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.GlobalItemParser
Is called at the start of parsing an element
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.GlobalMapParser
Is called at the start of parsing an element
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.GlobalSkillParser
Is called at the start of parsing an element
startElement(String, String, String, Attributes) - Method in class org.haphazard.XML.GlobalSpriteParser
Is called at the start of parsing an element
status() - Method in class org.haphazard.character.body.BodyPart
Prints the status of this part

T

Tile - class org.haphazard.gui.engine.Tile.
Tile contains the info for each Ground piece.
Tile(int, String) - Constructor for class org.haphazard.gui.engine.Tile
 
Tile(String, int) - Constructor for class org.haphazard.gui.engine.Tile
 
Tile(String, int, int[], Sprite, Sprite) - Constructor for class org.haphazard.gui.engine.Tile
 
Tile(Tile) - Constructor for class org.haphazard.gui.engine.Tile
 
timestamp - Variable in class org.haphazard.XML.Message
 
toEntry(File) - Method in class org.haphazard.gui.GlobalJarUtilities
 
toString() - Method in class org.haphazard.character.GeneralSkill
Translates this object into a string representation
toString() - Method in class org.haphazard.character.Skill
Translates this object into a String representation
toString() - Method in class org.haphazard.character.body.BodyPart
Returns a string representation of this object
toString() - Method in class org.haphazard.gui.engine.Frame
Turns this frame into a string notation
toString() - Method in class org.haphazard.gui.engine.FrameImage
 
toString() - Method in class org.haphazard.gui.engine.GraphicalObject
Returns this GraphicalObject as a string.
toString() - Method in class org.haphazard.gui.engine.Map
Make this map to a string.
toString() - Method in class org.haphazard.gui.engine.Sprite
Transforms this sprite into a string notation
toString() - Method in class org.haphazard.gui.engine.Tile
 
toString() - Method in class org.haphazard.item.Item
Translates this item into a String notation
toString() - Method in class org.haphazard.util.Point3D
Transforms this object into a String on the form {x,y,z}
toXML(String) - Static method in class org.haphazard.XML.XML
Replaces characters that interferes with XML parsing to their ISO equivalents.
toXML(int) - Method in class org.haphazard.character.Character
Translates this object into an XML notation
toXML(int) - Method in class org.haphazard.character.GeneralSkill
Translates this object into an XML notation
toXML(int) - Method in class org.haphazard.character.GlobalSkill
Translates this object into an XML notation
toXML(int) - Method in class org.haphazard.character.Skill
Transforms this skill into an XML-notation
toXML(int) - Method in class org.haphazard.character.body.Arm
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.character.body.BodyPart
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.character.body.Breast
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.character.body.Head
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.character.body.Leg
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.gui.engine.Frame
Transforms this object into XML-notation
toXML(int) - Method in class org.haphazard.gui.engine.FrameImage
 
toXML(int) - Method in class org.haphazard.gui.engine.GraphicalObject
Transforms this object into XML-notation
toXML(int) - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Transforms this object into XML-notation
toXML(int) - Method in class org.haphazard.gui.engine.Sprite
Transforms this object into XML-notation
toXML(int) - Method in class org.haphazard.item.Clothes
Transforms this object into an XML-notation
toXML(int) - Method in class org.haphazard.item.Container
Transforms this object into an XML notation
toXML(int) - Method in class org.haphazard.item.GeneralClothes
Translates this item into an XML notation
toXML(int) - Method in class org.haphazard.item.GeneralItem
Translates this item into an XML notation
toXML(int) - Method in class org.haphazard.item.GlobalItem
Translates this object into an XML notation
toXML(int) - Method in class org.haphazard.item.Item
Translates this item into an XML notation
toXML(int) - Method in class org.haphazard.util.Dimension3D
Transforms this object into an XML notation

U

unProject(int, int) - Method in class org.haphazard.gui.engine.Map
Unprojects coordinates from pixel space to tile space.
undress(Clothes) - Method in class org.haphazard.character.body.BodyPart
Undresses the specific clothes from this bodypart
unregister(Action) - Method in class org.haphazard.gui.engine.GlobalWorld
Unregisters an action from the world
update(Skill) - Method in class org.haphazard.character.Skill
Updates this skill with another skills stats
update() - Method in class org.haphazard.gui.engine.MoveableGraphicalObject
Updates this character Should be called every frame update
update() - Method in class org.haphazard.gui.engine.Sprite
Calculate what frame should be displayed
update(Observable, Object) - Method in class org.haphazard.system.action.GlobalGUIController
 
updateFrame() - Method in class org.haphazard.editor.FrameEditor
 
useFogOfWar() - Method in class org.haphazard.gui.GlobalOptions
Checks if the fog of war should be used
useGraphics() - Method in class org.haphazard.gui.GlobalOptions
Checks if graphics should be used

V

Vector3D - class org.haphazard.util.Vector3D.
An ordinary mathematical Vector
Vector3D() - Constructor for class org.haphazard.util.Vector3D
Creates a new instance of Vector3D
Vector3D(Point3D) - Constructor for class org.haphazard.util.Vector3D
Creates a vector from a point
Vector3D(Point3D, Point3D) - Constructor for class org.haphazard.util.Vector3D
Creates a vector from origin to destination
Vector3D(double, double, double) - Constructor for class org.haphazard.util.Vector3D
Creates a new Vector3D with specified coordinates
viewArea - Static variable in class org.haphazard.gui.engine.Map
 

W

WEAR - Static variable in class org.haphazard.system.action.CharacterAction
 
Warrior - class org.haphazard.util.sample_character.Warrior.
A sample noble warrior
Warrior() - Constructor for class org.haphazard.util.sample_character.Warrior
Creates a new instance of Warrior
waitForImage(Image) - Static method in class org.haphazard.gui.GlobalImageUtilities
Take an Image associated with a file, and wait until it is done loading.
waitForImages(Image[]) - Method in class org.haphazard.gui.GlobalImageUtilities
Take some Images associated with files, and wait until they are done loading.
wake() - Method in class org.haphazard.XML.ConnectionHandler
 
warning(SAXParseException) - Method in class org.haphazard.XML.CharacterParser
The function is called if a minor error is encountered during parsing.
warning(SAXParseException) - Method in class org.haphazard.XML.GlobalGraphicalObjectParser
The function is called if a minor error is encountered during parsing.
warning(SAXParseException) - Method in class org.haphazard.XML.GlobalItemParser
The function is called if a minor error is encountered during parsing.
warning(SAXParseException) - Method in class org.haphazard.XML.GlobalMapParser
The function is called if a minor error is encountered during parsing.
warning(SAXParseException) - Method in class org.haphazard.XML.GlobalSkillParser
The function is called if a minor error is encountered during parsing.
warning(SAXParseException) - Method in class org.haphazard.XML.GlobalSpriteParser
The function is called if a minor error is encountered during parsing.
wear(Clothes) - Method in class org.haphazard.character.body.BodyPart
Wears clothes on this bodypart
wear(int) - Method in class org.haphazard.item.Item
Calculates the wear of the item and modifies quality accordingly The higher the quality of the item, the lower the chance of wear to take effect
wear(Item) - Method in class org.haphazard.system.action.CharacterAction
Makes the character wear an item
wearHold(Item) - Method in class org.haphazard.character.Character
Makes a character wear or hold an item
width - Variable in class org.haphazard.util.Dimension3D
The width dimension; negative values can be used.
wound(int) - Method in class org.haphazard.character.body.BodyPart
Gives the part a new wound
wound(int) - Method in class org.haphazard.character.body.Head
Computes the effect of a wound

X

XML - class org.haphazard.XML.XML.
Static class for common XMLoperations
XML() - Constructor for class org.haphazard.XML.XML
 

Y

YES_NO - Static variable in class org.haphazard.gui.dialog.MsgBox
 
YES_NO_CANCEL - Static variable in class org.haphazard.gui.dialog.MsgBox
 

Z

z - Variable in class org.haphazard.util.Point3D
The Z coordinate

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