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/Tile.cs

    r1758 r1822  
    1919        public Vector2 Position { get { return new Vector2(Boundaries.X, Boundaries.Y); } set{} } 
    2020        public Rectangle Boundaries { get; set; } 
    21         public int Width { get { return Boundaries.Width; } private set {} } 
    22         public int Height { get { return Boundaries.Height; } private set { } } 
    23         public Texture2D Image { get; set; } 
     21        //public int Width { get { return Boundaries.Width; } private set {} } 
     22        //public int Height { get { return Boundaries.Height; } private set { } } 
    2423        public bool Selected { get; set; } 
    2524        public TileType TileType { get; set; } 
     25 
     26        public bool Passable { get; set; } 
    2627 
    2728        public Tile(TileType tileType, Rectangle boundaries) 
     
    3334        public Tile(Texture2D image, Vector2 position, int width, int height) 
    3435        { 
    35             this.Image = image; 
    3636            this.Boundaries = new Rectangle((int)position.X, (int)position.Y, width, height); 
    3737        } 
Note: See TracChangeset for help on using the changeset viewer.