Professional Documents
Culture Documents
Hardware Robot Movement
Hardware Robot Movement
using RobotHardware;
#endregion
namespace RumbaMumbaRobots.Robot
{
/// <summary>
///This is a concrete implementation of IHardwareRobotMovement. It uses
IHardwareRobotDiection which will be injected into
/// it using contractor injection. It has a dependency on
IHardwareRobotDirection
/// </summary>
public class HardwareRobotMovement : IHardwareRobotMovement
{
#region Private Variables
/// <summary>
///
/// </summary>
private readonly IHardwareRobot _hardwareRobot;
#endregion
/// <summary>
///
/// </summary>
/// <param name="hardwareRobot"> </param>
public HardwareRobotMovement( IHardwareRobot hardwareRobot)
{
_hardwareRobot = hardwareRobot;
}
#endregion
/// <summary>
///
/// </summary>
public int X { get { return _hardwareRobot.X; } }
/// <summary>
///
/// </summary>
public int Y { get { return _hardwareRobot.Y; } }
/// <summary>
///
/// </summary>
public int FaceTo { get { return _hardwareRobot.FaceTo; } }
/// <summary>
///
/// </summary>
public int TotalMovements { get { return _hardwareRobot.TotalMovements; } }
#endregion
#endregion
}
}