-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cs
48 lines (37 loc) · 1.16 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BugWars
{
public class Config
{
public bool IsValid
{
get { return (MapSize >= BugCountTotal) && (BugHealthBlue > 0) && (BugHealthRed > 0); }
}
public int BugCountTotal
{
get { return BugCountRed + BugCountBlue; }
}
public int MapSize
{
get { return MapWidth * MapHeight; }
}
public int ChangeDirectionChance { get; set; }
public int ToxicHit { get; set; }
public int MapWidth { get; set; }
public int MapHeight { get; set; }
public int FeedRate { get; set; }
public int CrumbEnergy { get; set; }
public int BugCountBlue { get; set; }
public int BugCountRed { get; set; }
public int BugHealthBlue { get; set; }
public int BugHealthRed { get; set; }
public int BugAppetiteBlue { get; set; }
public int BugAppetiteRed { get; set; }
public int BugStrengthBlue { get; set; }
public int BugStrengthRed { get; set; }
}
}