Mercurial > repos > IBBoard.WarFoundry.API
comparison API/Objects/Requirement/IRequirement.cs @ 487:248df19652f9
Re #410: Create "N units per M models in parent unit" requirement
* Add null adding context
* Add initial skeleton of "N units per M models in parent unit" requirement
* Update use of context
* Standardise some of "is applicable" testing
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 27 Jul 2012 20:31:12 +0100 |
parents | afc6410e4efc |
children | 4f01fdc3bb41 |
comparison
equal
deleted
inserted
replaced
486:6e5b39caeb4e | 487:248df19652f9 |
---|---|
1 // This file (Requirement.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2011 IBBoard | 1 // This file (Requirement.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2011 IBBoard |
2 // | 2 // |
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. | 3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. |
4 using System; | 4 using System; |
5 using IBBoard.WarFoundry.API.Objects.Requirement.Context; | |
5 | 6 |
6 namespace IBBoard.WarFoundry.API.Objects.Requirement | 7 namespace IBBoard.WarFoundry.API.Objects.Requirement |
7 { | 8 { |
8 /// <summary> | 9 /// <summary> |
9 /// Base interface for a Requirement that constrains the IWarFoundryObjects that can be taken in an army | 10 /// Base interface for a Requirement that constrains the IWarFoundryObjects that can be taken in an army |
65 /// The IWarFoundryObject to try to add | 66 /// The IWarFoundryObject to try to add |
66 /// </param> | 67 /// </param> |
67 /// <param name='toArmy'> | 68 /// <param name='toArmy'> |
68 /// The army the object will be added to | 69 /// The army the object will be added to |
69 /// </param> | 70 /// </param> |
70 string GetAllowsAddingMessage(IWarFoundryObject toAdd, Army toArmy); | 71 /// <param name="context"> |
72 /// The context of the addition | |
73 /// </para> | |
74 string GetAllowsAddingMessage(IWarFoundryObject toAdd, Army toArmy, AddingContext context); | |
71 } | 75 } |
72 } | 76 } |
73 | 77 |