comparison api/WarFoundryCore.cs @ 38:548cfc776f54

Fixes #34 - Remove "Choices" and "Base/Increment" from Category * Remove Choices and Base/Increment from code Re #47: Remove magic numbers * Replace "-1" magic number with WarFoundryCore.INFINITY * Use INFINITY instead of -1 in code * Use INF in schemas instead of -1 * Handle and parse INF as a special value in XML Factory
author IBBoard <dev@ibboard.co.uk>
date Thu, 19 Mar 2009 20:11:07 +0000
parents 306558904c2a
children 3ea0ab04352b
comparison
equal deleted inserted replaced
37:465a215a21a2 38:548cfc776f54
8 8
9 namespace IBBoard.WarFoundry.API 9 namespace IBBoard.WarFoundry.API
10 { 10 {
11 public class WarFoundryCore 11 public class WarFoundryCore
12 { 12 {
13 public static readonly int INFINITY = -1;
13 public static event GameSystemChangedDelegate GameSystemChanged; 14 public static event GameSystemChangedDelegate GameSystemChanged;
14 public static event ArmyChangedDelegate ArmyChanged; 15 public static event ArmyChangedDelegate ArmyChanged;
15 16
16 private static GameSystem system; 17 private static GameSystem system;
17 private static Army currentArmy; 18 private static Army currentArmy;