apes
Class BlockMap

java.lang.Object
  extended by apes.BlockMap

public class BlockMap
extends java.lang.Object

This class loads and stores the information given in a .tmx file created with the program Tiled (http://www.mapeditor.org/ ).

At the moment, it checks the map for tiles with the id 1 and assumes that they are not passable, so it creates a Block with the tile size provided by the map. It ignores all other tiles as decoration. Meaning they do not affect game play but are printed to the screen. Based on the objects described in the map it does initialize the player (object id (in tiled map) 0), the enemy (object id 1), players banana (object id 2), enemy banana (object id 3),

See Also:
ICollidableObject

Constructor Summary
BlockMap(java.lang.String ref)
           
 
Method Summary
 Ape getApe()
           
 Banana getBanana()
           
 Banana getBanana2()
           
 Ape getEnemy()
           
 java.util.ArrayList<java.lang.Object> getEntities()
           
 org.newdawn.slick.tiled.TiledMap getTmap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockMap

public BlockMap(java.lang.String ref)
         throws org.newdawn.slick.SlickException
Throws:
org.newdawn.slick.SlickException
Method Detail

getApe

public Ape getApe()

getBanana

public Banana getBanana()

getBanana2

public Banana getBanana2()

getEnemy

public Ape getEnemy()

getEntities

public java.util.ArrayList<java.lang.Object> getEntities()

getTmap

public org.newdawn.slick.tiled.TiledMap getTmap()