A B C D F G I L M P S T U

A

addX(int) - Method in class Mappy
Increments the X coordinate of the current Map layer by the given amount (in pixels).
addY(int) - Method in class Mappy
Increments the Y coordinate of the current Map layer by the given amount (in pixels).
animateBlocks() - Method in class Mappy
Animates all the animation block structures.

B

BACKGROUND - Variable in class Mappy.Block
A Block Image layer.

C

COLLISION_BOTTOM_LEFT - Variable in class Mappy.Block
A flag used in collision detection.
COLLISION_BOTTOM_RIGHT - Variable in class Mappy.Block
A flag used in collision detection.
COLLISION_TOP_LEFT - Variable in class Mappy.Block
A flag used in collision detection.
COLLISION_TOP_RIGHT - Variable in class Mappy.Block
A flag used in collision detection.
collisionDetection(int, int) - Method in class Mappy
Performs a collision detection test at the given pixel coordinates using the Block's collision flags.

D

debug(String) - Method in class Mappy.Block
Logs the Block's current state.
destroy() - Method in class MappyTest
Called by the Browser when Applet is about to die.
drawBackground(Graphics, boolean) - Method in class Mappy
Draws the Blocks' background of the current Map layer.
drawForeground(Graphics, int) - Method in class Mappy
Draws the Blocks' foreground of the current Map layer.

F

FOREGROUND1 - Variable in class Mappy.Block
A Block Image layer.
FOREGROUND2 - Variable in class Mappy.Block
A Block Image layer.
FOREGROUND3 - Variable in class Mappy.Block
A Block Image layer.

G

getAppletInfo() - Method in class MappyTest
Returns applet info.
getBlock(int, int) - Method in class Mappy
Returns the Block used at the given Block coordinates, in the current Map layer.
getBlockHeight() - Method in class Mappy
Returns the height of a Block, in pixels.
getBlockWidth() - Method in class Mappy
Returns the width of a Block, in pixels.
getBlockX() - Method in class Mappy
Returns the X coordinate of the current Map layer, in Blocks.
getBlockY() - Method in class Mappy
Returns the Y coordinate of the current Map layer, in Blocks.
getCurrentMapLayer() - Method in class Mappy
Returns the current Map layer.
getFlag(int) - Method in class Mappy.Block
Returns the specified Flag.
getImageIndex(int) - Method in class Mappy.Block
Returns the Image index of the given Block layer.
getMapDescription() - Method in class Mappy
Returns a description of the Map.
getMapHeight() - Method in class Mappy
Returns the total height of the Map, in pixels.
getMapHeightBlocks() - Method in class Mappy
Returns the total height of the Map, in blocks.
getMapWidth() - Method in class Mappy
Returns the total width of the Map, in pixels.
getMapWidthBlocks() - Method in class Mappy
Returns the total width of the Map, in blocks.
getPreferredScrollableViewportSize() - Method in class SwingMapView
 
getPreferredSize() - Method in class SwingMapView
 
getScreenDimensions() - Method in class Mappy
Returns the screen dimensions.
getScrollableBlockIncrement(Rectangle, int, int) - Method in class SwingMapView
 
getScrollableTracksViewportHeight() - Method in class SwingMapView
 
getScrollableTracksViewportWidth() - Method in class SwingMapView
 
getScrollableUnitIncrement(Rectangle, int, int) - Method in class SwingMapView
 
getTransparentColour() - Method in class Mappy
Returns the transparent colour used for Block Images in RGB format.
getUserData(int) - Method in class Mappy.Block
Returns the specified User Data.
getX() - Method in class Mappy
Returns the X coordinate of the current Map layer, in pixels.
getY() - Method in class Mappy
Returns the Y coordinate of the current Map layer, in pixels.

I

init() - Method in class MappyTest
Called by the Browser to initialise the Applet.
itemStateChanged(ItemEvent) - Method in class SwingMapTest
 

L

loadMap(File, Component) - Method in class Mappy
Loads a .FMP Map from a given File.
loadMap(InputStream, Component) - Method in class Mappy
Loads a .FMP Map from a given InputStream.
loadMap(String, Component) - Method in class Mappy
Loads a .FMP Map from a given filename.
loadMAR(String, int) - Method in class Mappy
Loads a .MAR map array file called strFileName.

M

main(String[]) - Static method in class SwingMapTest
 
Mappy - class Mappy.
Mappy Playback Library for Java Release 6

Based on MappyJV Release1 14/07/99 (C)1999 Robin Burrows.
Mappy.Block - class Mappy.Block.
Mappy Block v1.10

This class represents a Block as used by Mappy.
Mappy.Block() - Constructor for class Mappy.Block
Only Mappycan contruct Block classes.
Mappy() - Constructor for class Mappy
Constructs a new Mappy Playback Library.
MappyTest - class MappyTest.
Test Applet for the Mappy Playback Library v1.23.
MappyTest() - Constructor for class MappyTest
 
MAX_USER_DATA - Variable in class Mappy.Block
A minimum index for User Data.
MIN_USER_DATA - Variable in class Mappy.Block
A minimum index for User Data.

P

paint(Graphics) - Method in class MappyTest
Draws the double buffer onto the screen
paintComponent(Graphics) - Method in class SwingMapView
 

S

setBlock(int, int, int) - Method in class Mappy
Puts the block structure value in the map at the given block coords.
setCurrentMapLayer(int) - Method in class Mappy
Sets the current Map layer.
setFlag(int, boolean) - Method in class Mappy.Block
Sets the specified Flag.
setImageIndex(int, int) - Method in class Mappy.Block
Sets the Image of the given Block layer.
setPreferredHeight(int) - Method in class SwingMapView
 
setPreferredWidth(int) - Method in class SwingMapView
 
setScreenDimensions(int, int, int, int) - Method in class Mappy
A helper method that sets the screen dimensions.
setScreenDimensions(Rectangle) - Method in class Mappy
Sets the screen dimensions.
setTransparentColour(int) - Method in class Mappy
Sets the transparent colour for Block Images.
setUserData(int, int) - Method in class Mappy.Block
Sets the specified User Data.
setX(int) - Method in class Mappy
Sets the X coordinate of the current Map layer, in pixels.
setY(int) - Method in class Mappy
Sets the Y coordinate of the current Map layer, in pixels.
start() - Method in class MappyTest
Called by the Browser to start the Applet.
stop() - Method in class MappyTest
Called by the Browser to stop the Applet.
SwingMapTest - class SwingMapTest.
SwingMapTest.java 0.2 02/08/03
by Robin Burrows

http://www.tilemap.co.uk

A very simple swing application to show a map in a window

required files: SwingMapTest.java SwingMapView.java Mappy.java
TEST.FMP must be in base folder

SwingMapTest() - Constructor for class SwingMapTest
 
SwingMapView - class SwingMapView.
 
SwingMapView() - Constructor for class SwingMapView
 

T

TRIGGER - Variable in class Mappy.Block
A User defined flag.

U

UNUSED1 - Variable in class Mappy.Block
A User defined flag.
UNUSED2 - Variable in class Mappy.Block
A User defined flag.
UNUSED3 - Variable in class Mappy.Block
A User defined flag.
update(Graphics) - Method in class MappyTest
Need to override this to prevent the screen being white-washed!

A B C D F G I L M P S T U