91 lines
1.8 KiB
C#
91 lines
1.8 KiB
C#
namespace EE2Clone.Core
|
|
{
|
|
public enum UnitClass
|
|
{
|
|
Citizen,
|
|
Infantry,
|
|
Ranged,
|
|
Cavalry,
|
|
Siege,
|
|
Priest
|
|
}
|
|
|
|
public enum ResourceType
|
|
{
|
|
Food,
|
|
Wood,
|
|
Stone,
|
|
Gold,
|
|
Tin
|
|
}
|
|
|
|
public enum Epoch
|
|
{
|
|
StoneAge = 0,
|
|
BronzeAge = 1,
|
|
IronAge = 2
|
|
}
|
|
|
|
public enum BuildingType
|
|
{
|
|
TownCenter,
|
|
House,
|
|
Barracks,
|
|
ArcheryRange,
|
|
Stable,
|
|
SiegeWorkshop,
|
|
Temple,
|
|
University,
|
|
Farm,
|
|
LumberCamp,
|
|
MiningCamp,
|
|
Quarry,
|
|
Wall,
|
|
Tower
|
|
}
|
|
|
|
public enum CitizenState
|
|
{
|
|
Idle,
|
|
MovingToGather,
|
|
Gathering,
|
|
MovingToDropoff,
|
|
Depositing,
|
|
MovingToBuild,
|
|
Building,
|
|
Repairing,
|
|
Fighting
|
|
}
|
|
|
|
public enum UnitState
|
|
{
|
|
Idle,
|
|
Moving,
|
|
Attacking,
|
|
Dying
|
|
}
|
|
|
|
public static class GameConstants
|
|
{
|
|
public const int MaxPlayers = 8;
|
|
public const int MaxPopulationCap = 200;
|
|
public const int PopulationPerHouse = 5;
|
|
public const int StartingPopulationCap = 10;
|
|
|
|
public const float GatherTickInterval = 1.0f;
|
|
public const float ConstructionTickInterval = 0.5f;
|
|
|
|
public const int FlowFieldWidth = 256;
|
|
public const int FlowFieldHeight = 256;
|
|
public const float FlowFieldCellSize = 1.0f;
|
|
|
|
public const float MinDamage = 1f;
|
|
|
|
// Counter bonus multipliers (rock-paper-scissors)
|
|
public const float CounterBonusStrong = 1.5f;
|
|
public const float CounterBonusWeak = 0.75f;
|
|
public const float CounterBonusNeutral = 1.0f;
|
|
public const float SiegeBuildingBonus = 3.0f;
|
|
}
|
|
}
|