Exemple #1
0
 public override void Collision(CollidableSprite _sprite)
 {
     if (_sprite is Character)
         ((Character)_sprite).BoundCollision();
 }
 /// <summary>
 /// Detects if a collision occurs with the specified CollidableSprite and takes appropriate action
 /// </summary>
 /// <param name="_sprite">Specified CollidableSprite</param>
 public override void Collision(CollidableSprite _sprite)
 {
     if (_sprite is Character)
         ((Character)_sprite).StairCollision(this);
 }
 /// <summary>
 /// Detects if a collision occurs with the specified CollidableSprite and takes appropriate action
 /// </summary>
 /// <param name="_sprite">Specified CollidableSprite</param>
 public abstract void Collision(CollidableSprite _sprite);