comparison API/Objects/Requirement/AbstractRequirement.cs @ 427:3882b533d99d

Re #27: Define unit requirements * Add ID to requirements so that it isn't just defined in factories * Make factory use ID from requirement class to avoid duplication and possible mismatch
author IBBoard <dev@ibboard.co.uk>
date Sun, 30 Oct 2011 20:31:43 +0000
parents 71fceea2725b
children 8f5125740316
comparison
equal deleted inserted replaced
426:61fae5cbba02 427:3882b533d99d
6 6
7 namespace IBBoard.WarFoundry.API.Objects.Requirement 7 namespace IBBoard.WarFoundry.API.Objects.Requirement
8 { 8 {
9 public abstract class AbstractRequirement : IRequirement 9 public abstract class AbstractRequirement : IRequirement
10 { 10 {
11 /// <summary>
12 /// Gets the ID of the requirement type. This is used by the requirement factories.
13 /// It may be, but is not required to be, the name of the class.
14 /// </summary>
15 /// <value>
16 /// The requirement I.
17 /// </value>
18 public abstract string RequirementID { get; }
19
11 public override bool Equals (object obj) 20 public override bool Equals (object obj)
12 { 21 {
13 if (obj == null) 22 if (obj == null)
14 { 23 {
15 return false; 24 return false;