Ignore:
Timestamp:
2011-06-09 15:14:45 (8 years ago)
Author:
tekrjant
Message:

Generates random map on startup.
Saving works and loading added
Minor "optimization" done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/sijoseha/AdventureGame/AdventureGame/Button.cs

    r1758 r1822  
    2626        public bool Selectable { get; set; } 
    2727        public bool Selected { get; set; } 
     28        public TileType RelatedTileType { get; set; } 
     29 
    2830 
    2931        public Button(Rectangle boundaries, Texture2D texture, Color borderColor, bool selectable, GraphicsDevice device) 
     
    3133            this.Boundaries = boundaries; 
    3234            this.BorderColor = borderColor; 
     35            this.Selectable = selectable; 
    3336            this.Image = CreateTexture(borderColor, texture, device); 
    3437            this.SelectedImage = CreateTexture(Color.White, texture, device); 
    3538        } 
    3639 
    37         public Button(Rectangle boundaries, string text, Color bgColor, Color borderColor, GraphicsDevice device, ButtonClickedHandler clickAction) 
     40        public Button(Rectangle boundaries, string text, Color bgColor, Color borderColor, GraphicsDevice device)//, ButtonClickedHandler clickAction) 
    3841        { 
    3942            this.Boundaries = boundaries; 
Note: See TracChangeset for help on using the changeset viewer.