Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.visionire.downtown.obj;
- import com.google.gson.JsonArray;
- import com.google.gson.JsonNull;
- import com.google.gson.JsonObject;
- import com.mongodb.DBObject;
- /**
- *
- * @author Morten Wollsen
- */
- public class MapObject {
- protected DBObject record; //needed for database
- protected int objectID; //unique object ID
- //actual variables for the Map
- protected int mapID;
- protected String name;
- protected int left, top;
- protected int width, height;
- protected TileSet[] tileset;
- protected Column[] columns;
- //private classes
- private static class TileSet {
- protected String source;
- protected int offset;
- public TileSet() {
- }
- }
- private static class Column {
- protected Tile_Spec[] tiles;
- public Column() {
- }
- }
- private static class Tile_Spec {
- protected boolean pathable;
- protected int[] textures; //Maybe make it with an ArrayDeque
- public Tile_Spec() {
- }
- }
- }
Add Comment
Please, Sign In to add comment