Ejemplo n.º 1
0
        public KitchenRoom(Texture2D tex, Vector2 pos, Color tint) : base(tex, pos, tint)
        {
            this.SetTexture(tex);
            this.SetPosition(pos);
            this.SetColor(tint);

            this.SetSourceRect(518, 3, 256, 128);
            this.SetBoundingBox(new Rectangle((int)pos.X, (int)pos.Y, 256, 128));
            this.Cost        = 100;
            this.ExpenseRate = 10;
            this.ID          = GameVariables.GetID();

            this.Layer     = 1;
            this.IsVisible = true;
        }
Ejemplo n.º 2
0
        public LowQualityLodgingRoom(Texture2D tex, Vector2 pos, Color tint) : base(tex, pos, tint)
        {
            this.SetTexture(tex);
            this.SetPosition(pos);
            this.SetColor(tint);

            this.SetSourceRect(3, 134, 256, 128);
            this.SetBoundingBox(new Rectangle((int)pos.X, (int)pos.Y, 256, 128));
            this.Cost        = 50;
            this.ExpenseRate = 5;
            this.ID          = GameVariables.GetID();

            this.Layer     = 1;
            this.IsVisible = true;
        }