Ejemplo n.º 1
0
 public Tile(Vector2 id, ref Texture2D Sheet, int x, int y, int Width, int Height)
 {
     tileId = id;
     sheet = Sheet;
     position = new Vector2(x*Width, y*Height);
     bounding = new Rectangle((int)position.X, (int)position.Y, Width, Height);
     width = Width;
     height = Height;
     ability = null;
 }
Ejemplo n.º 2
0
 public void setAbility(int id, IAbility newAbility)
 {
     if (abilities.ContainsKey(id))
     {
         abilities[id] = newAbility;
     }
     else
     {
         abilities.Add(id, newAbility);
     }
 }
Ejemplo n.º 3
0
 public void setCell(IAbility ability, int x, int y)
 {
     grid[y, x].Ability = ability;
     grid[y, x].Occupied = true;
 }