27 lines
750 B
C#
27 lines
750 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WorldOfPeacecraft
|
|
{
|
|
/// <summary>
|
|
/// Interface your positionable objects should implement. Such as the dragons and players.
|
|
/// This enables the frontend to determine the current position of said objects to render them at the correct space.
|
|
/// </summary>
|
|
public interface IPositionable
|
|
{
|
|
/// <summary>
|
|
/// Getter for the x-position
|
|
/// </summary>
|
|
/// <returns>the x-position</returns>
|
|
int GetX();
|
|
/// <summary>
|
|
/// Getter for the y-position
|
|
/// </summary>
|
|
/// <returns>the y-position</returns>
|
|
int GetY();
|
|
}
|
|
}
|