public GameObject(int width, int height, RoomWrapper rw, GameObjectType type, MoveType mType, int homeRoom) { _rw = rw; this.type = type; this.mType = mType; this.homeRoom = homeRoom; size = new Vector2(width, height); }
public Room(int roomNum, RoomWrapper rw) { this.roomNum = roomNum; this.rw = rw; gameobjects = new List <GameObject>(); int xSize = (int)(rw.map.size.X / Tile.TILE_SIZE); int ySize = (int)(rw.map.size.Y / Tile.TILE_SIZE); collisionArray = new GameObject[xSize, ySize]; for (int x = 0; x < xSize; x++) { for (int y = 0; y < ySize; y++) { collisionArray[x, y] = null; } } GOReader(); }
public Player(int width, int height, RoomWrapper rw, GameObjectType type, MoveType mType, int homeRoom) : base(width, height, rw, type, mType, homeRoom) { }
public Map(RoomWrapper rw) { _rw = rw; gameObjectTextures = new Dictionary <GameObjectType, Texture2D>(); }