comparison API/Objects/UnitType.cs @ 367:1a70ca80ef41

Re #27: Define unit requirements * Remove remaining references to old Requirements namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 May 2011 15:51:54 +0000
parents 50d0d3b39a0b
children 71fceea2725b
comparison
equal deleted inserted replaced
366:4993e6f7c509 367:1a70ca80ef41
5 using System; 5 using System;
6 using System.Collections.Generic; 6 using System.Collections.Generic;
7 using System.Xml; 7 using System.Xml;
8 using IBBoard.Limits; 8 using IBBoard.Limits;
9 using IBBoard.Logging; 9 using IBBoard.Logging;
10 using IBBoard.WarFoundry.API.Requirements;
11 using IBBoard.WarFoundry.API.Objects.Requirement; 10 using IBBoard.WarFoundry.API.Objects.Requirement;
12 11
13 namespace IBBoard.WarFoundry.API.Objects 12 namespace IBBoard.WarFoundry.API.Objects
14 { 13 {
15 /// <summary> 14 /// <summary>
508 reqs.Add(req); 507 reqs.Add(req);
509 } 508 }
510 509
511 return reqs.ToArray(); 510 return reqs.ToArray();
512 } 511 }
513
514 [Obsolete]
515 public List<FailedUnitRequirement> CanAddToArmy(Army army)
516 {
517 List<FailedUnitRequirement> failures = new List<FailedUnitRequirement>();
518 return failures;
519 }
520
521 [Obsolete]
522 public List<FailedUnitRequirement> CanRemoveFromArmy(Army army)
523 {
524 List<FailedUnitRequirement> failures = new List<FailedUnitRequirement>();
525 return failures;
526 }
527 512
528 public string Notes 513 public string Notes
529 { 514 {
530 get { return notes; } 515 get { return notes; }
531 set { notes = value; } 516 set { notes = value; }