Initial commit.

This commit is contained in:
Woody Folsom
2012-03-06 11:42:35 -05:00
commit 8e83234a87
124 changed files with 9621 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
package dk.itu.mario.MarioInterface;
import dk.itu.mario.engine.sprites.SpriteTemplate;
public interface LevelInterface {
public static byte[] TILE_BEHAVIORS = new byte[256];
public static final int TYPE_OVERGROUND = 0;
public static final int TYPE_UNDERGROUND = 1;
public static final int TYPE_CASTLE = 2;
public static final int BIT_BLOCK_UPPER = 1 << 0;
public static final int BIT_BLOCK_ALL = 1 << 1;
public static final int BIT_BLOCK_LOWER = 1 << 2;
public static final int BIT_SPECIAL = 1 << 3; //mashroom or flower
public static final int BIT_BUMPABLE = 1 << 4;
public static final int BIT_BREAKABLE = 1 << 5;
public static final int BIT_PICKUPABLE = 1 << 6;
public static final int BIT_ANIMATED = 1 << 7;
public void tick();
//Map of WIDTH * HEIGHT that contains the level's design
public byte[][] getMap();
//Map of WIDTH * HEIGHT and contains the placement and type enemies
public SpriteTemplate[][] getSpriteTemplates();
public int getWidth();
public int getHeight();
//These are the place where the level ends
public int getxExit();
public int getyExit();
public String getName();
}