Initial commit

This commit is contained in:
Nate Bowman
2026-07-26 20:26:36 -04:00
commit 4a014aeb50
12 changed files with 1058 additions and 0 deletions

19
aoe/production.py Normal file
View File

@@ -0,0 +1,19 @@
from aoe.types import *
class Production():
# assumes for now each unit can be built in only one type of building
def __init__(self):
self.building = {
Units.VILLAGER: Buildings.TOWNCENTER,
Units.TRADECART: Buildings.MARKET,
Units.SPEARMAN: Buildings.BARRACKS,
Units.MILITIA: Buildings.BARRACKS,
Units.SCOUT: Buildings.STABLE,
Units.KNIGHT: Buildings.STABLE,
Units.SKIRMISHER: Buildings.ARCHERYRANGE,
Units.ARCHER: Buildings.ARCHERYRANGE,
}