Guest User

Untitled

a guest
Nov 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. package com.visionire.downtown.obj;
  2.  
  3. import com.google.gson.JsonArray;
  4. import com.google.gson.JsonNull;
  5. import com.google.gson.JsonObject;
  6.  
  7. import com.mongodb.DBObject;
  8.  
  9. /**
  10.  *
  11.  * @author Morten Wollsen
  12.  */
  13. public class MapObject {
  14.  
  15.  
  16.  
  17.     protected DBObject record; //needed for database
  18.     protected int objectID; //unique object ID
  19.  
  20.     //actual variables for the Map
  21.     protected int mapID;
  22.     protected String name;
  23.     protected int left, top;
  24.     protected int width, height;
  25.     protected TileSet[] tileset;
  26.     protected Column[] columns;
  27.  
  28.  
  29.  
  30.     //private classes
  31.     private static class TileSet {
  32.  
  33.         protected String source;
  34.         protected int offset;
  35.  
  36.         public TileSet() {
  37.         }
  38.     }
  39.  
  40.     private static class Column {
  41.  
  42.         protected Tile_Spec[] tiles;
  43.  
  44.         public Column() {
  45.         }
  46.     }
  47.  
  48.     private static class Tile_Spec {
  49.  
  50.         protected boolean pathable;
  51.         protected int[] textures; //Maybe make it with an ArrayDeque
  52.  
  53.         public Tile_Spec() {
  54.         }
  55.     }
  56. }
Add Comment
Please, Sign In to add comment