public void ReadAttack()
 {
     if (this.Entity.status != CharState.attack && CollisionDetection.CheckCollision(Entity.Attackbox, target.CollisionRectangle))
     {
         this.Entity.status = CharState.attack;
     }
 }
 private int CheckDoors(Hero hero)
 {
     for (int i = 0; i < ActiveRoom.Doors.Count; i++)
     {
         if (CollisionDetection.CheckCollision(hero.CollisionRectangle, ActiveRoom.Doors[i]))
         {
             return(i);
         }
     }
     return(-1);
 }