0
|
1 using System;
|
|
2 using System.Xml;
|
|
3
|
|
4 namespace IBBoard.WarFoundry.API.Objects
|
|
5 {
|
|
6 /// <summary>
|
|
7 /// Summary description for Category.
|
|
8 /// </summary>
|
|
9 public class Category : WarFoundryObject
|
|
10 {
|
|
11 private int minPts, maxPts, minPc, maxPc, minChoice, maxChoice, baseVal, incVal, incAmount;
|
|
12 /*private GameSystem system;*/
|
|
13
|
|
14 public Category(string id, string name, int minPoints, int maxPoints, int minPercent, int maxPercent, int minChoices, int maxChoices, int baseValue, int incrementValue, int incrementAmount) : base(id, name)
|
|
15 {
|
|
16 minPts = minPoints;
|
|
17 maxPts = maxPoints;
|
|
18 minPc = minPercent;
|
|
19 maxPc = maxPercent;
|
|
20 baseVal = baseValue;
|
|
21 incVal = incrementValue;
|
|
22 incAmount = incrementAmount;
|
|
23 }
|
|
24
|
|
25 protected override string DefaultName()
|
|
26 {
|
|
27 return "";
|
|
28 }
|
|
29
|
|
30 public int MinimumPoints
|
|
31 {
|
|
32 get { return minPts; }
|
|
33 set { minPts = value; }
|
|
34 }
|
|
35
|
|
36 public int MaximumPoints
|
|
37 {
|
|
38 get { return maxPts; }
|
|
39 set { maxPts = value; }
|
|
40 }
|
|
41
|
|
42 public int MinimumPercentage
|
|
43 {
|
|
44 get { return minPc; }
|
|
45 set { minPc = value; }
|
|
46 }
|
|
47
|
|
48 public int MaximumPercentage
|
|
49 {
|
|
50 get { return maxPc; }
|
|
51 set { maxPc = value; }
|
|
52 }
|
|
53
|
|
54 public int MinimumChoices
|
|
55 {
|
|
56 get { return minChoice; }
|
|
57 set { minChoice = value; }
|
|
58 }
|
|
59
|
|
60 public int MaximumChoices
|
|
61 {
|
|
62 get { return maxChoice; }
|
|
63 set { maxChoice = value; }
|
|
64 }
|
|
65
|
|
66 public int BaseValue
|
|
67 {
|
|
68 get { return baseVal; }
|
|
69 set { baseVal = value; }
|
|
70 }
|
|
71
|
|
72 public int IncrementValue
|
|
73 {
|
|
74 get { return incVal; }
|
|
75 set { incVal = value; }
|
|
76 }
|
|
77
|
|
78 public int IncrementAmount
|
|
79 {
|
|
80 get { return incAmount; }
|
|
81 set { incAmount = value; }
|
|
82 }
|
|
83 }
|
|
84 }
|