// Done! public void AddMove(IHardwareAgent agent, HardwareActionStatus actionStatus, Vector heading, float speed) { this.Add(new HardwareHistoryItem(HardwareHistoryType.Rotate, actionStatus, Helpers.Clone(agent.Status), 0, speed, heading)); }
// Done! #region .Ctor // Done! public Agent(IHardwareAgent agent) { Contract.Requires(agent != null); this.agent = agent; }
// Done! #region Methods // Done! public void AddRotation(IHardwareAgent agent, HardwareActionStatus actionStatus, float angle, float speed) { this.Add(new HardwareHistoryItem(HardwareHistoryType.Rotate, actionStatus, Helpers.Clone(agent.Status), angle, speed, null)); }