示例#1
0
        /// <summary>
        /// Set up the game room.
        /// </summary>
        public override void Initialize()
        {
            int startX = this.roomConfig.GetIntValue("CameraStartX", 0);
            int startY = this.roomConfig.GetIntValue("CameraStartY", 0);
            GameWidth = this.roomConfig.GetIntValue("RoomWidth", Constants.WINDOW_WIDTH);
            GameHeight = this.roomConfig.GetIntValue("RoomHeight", Constants.WINDOW_HEIGHT);

            // set up the singleton camera
            Camera.Setup(startX, startY, GameWidth, GameHeight);

            // Initialize Building stuff
            campusCatalog = new CampusCatalog();

            // Initialize the Building manager
            CampusManager.Instance.Initialize(GameWidth, GameHeight);

            // Initialize GUI
            folder = new SideFolder(campusCatalog);
            hud = new HUD();
            status = new StatusBar();
        }
示例#2
0
 /// <summary>
 /// Construct yo
 /// </summary>
 internal BuildTab(SideFolder parent) : base(parent.Depth)
 {
     this.parent    = parent;
     this.Clickable = true;
     this.Type      = ElementType.GUI;
 }
示例#3
0
 /// <summary>
 /// Construct yo
 /// </summary>
 internal BuildTab(SideFolder parent)
     : base(parent.Depth)
 {
     this.parent = parent;
     this.Clickable = true;
     this.Type = ElementType.GUI;
 }