Initial Commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
namespace FlappyBird.Bird
|
||||
{
|
||||
/// <summary>
|
||||
/// Contract for the bird physics controller service.
|
||||
/// Separates logic from the MonoBehaviour view layer.
|
||||
/// </summary>
|
||||
public interface IBirdController
|
||||
{
|
||||
/// <summary>Attaches the spawned bird view to the controller.</summary>
|
||||
void Bind(BirdView view);
|
||||
|
||||
/// <summary>Initializes the bird at the given spawn position and freezes physics.</summary>
|
||||
void Initialize();
|
||||
|
||||
/// <summary>Applies an upward impulse and enables physics simulation.</summary>
|
||||
void Jump();
|
||||
|
||||
/// <summary>Reports a lethal collision from the view layer.</summary>
|
||||
void HandleCollision();
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables input processing.
|
||||
/// Pass false to freeze the bird before the first tap.
|
||||
/// </summary>
|
||||
void SetInputEnabled(bool enabled);
|
||||
|
||||
/// <summary>Called every fixed-update tick to apply rotation.</summary>
|
||||
void FixedTick();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user