Buildings

**Buildings** are the terrain types at which units can rehabilitate. There are three types of buildings: **farms** (AE1 and AE2), **castles** (AE1 and AE2), and **public buildings** (AE2 only).

## Farms

**Farms** (a.k.a. **houses** informally) serve as the strongholds for an army to defend against enemies and rehabilitate troops that are severely injured on the battlefield. They are also essential for an army to push the front line towards enemy castles before the king/knight (Ancient Empires 1) or commander (Ancient Empires 2) can occupy the enemy castles.

A farm can only be occupied by a soldier, king/knight (Ancient Empires 1) or commander (Ancient Empires 2).

Farms also serve as a source of income. Each farm yields **$30** for its owner every turn.

Different behaviors of farms in both games include:

* **Ancient Empires 1**
	+ Each farm yields a health point increase of **2** for each unit standing on a farm of the same color, at the beginning of the turn, until the unit reaches a maximum health point of **10**.
	+ In the Java version, the king must stay on the castle to produce new troops. Hence, they usually never travel out to occupy farms and participate in the battle.
	+ In the Android version this restriction is removed. Hence the knight would occupy farms and fight against enemies as the commanders would in Ancient Empires 2.
* **Ancient Empires 2**
	+ Each farm yields a health point increase of **20** for each unit standing on a farm of the same color, or of the color of one of its allies, at the beginning of the turn, until the unit reaches a maximum health point of **100**.
	+ A farm can be destroyed by catapults.
		- In the Java version of Ancient Empires 2, a catapult may destroy an enemy farm or an unoccupied farm.
		- In the Android version, a catapult can only destroy enemy farms.
	+ A destroyed farm must be repaired by a soldier or commander before it can be occupied.

### Gallery

Farms in Ancient Empires 1Blue farm in Ancient Empires 2Red farm in Ancient Empires 2Green farm in Ancient Empires 2Black farm in Ancient Empires 2Gray (unoccupied) farm in Ancient Empires 2Destroyed farm in Ancient Empires 2
## Castles

**Castles** are the base of any army. In addition to replenishing health for its members, castles are also the buildings in which an army can purchase new units with the money at hand.

Only a king/knight (Ancient Empires 1) or a commander (Ancient Empires 2) can occupy castles.

Each castle produces **$50** for its owner every turn.

* **Ancient Empires 1**
	+ Each castle yields a health point increase of **2** (Java version) / **3** (Android version) for each unit standing on a farm of the same color, at the beginning of the turn, until the unit reaches a maximum health point of **10**.
	+ In the Java version of Ancient Empires 1, a castle can be used to purchase new units only when a king stands on it and is not in the "move ended" status (right after occupying the castle / after attacking a surrounding enemy). A team is defeated if its king is killed.
	+ In the Android version this restriction is removed, allowing the knights to move anywhere to battle. As a result, a team has to use its knight to occupy enemy castles to win the game.
		- In the Companies mode, just the same as in the Java version, the Blue player must keep the knight alive.
		- In the Create Game mode, users may purchase more than one knights for $400 each (fixed) if they have sufficient money; also, one can also purchase a knight for $400 (fixed every time) after it is killed on the battlefield.
* **Ancient Empires 2**
	+ Each castle yields a health point increase of **20** for each unit standing on a farm of the same color, or of the color of one of its allies, at the beginning of the turn, until the unit reaches a maximum health point of **100**.
	+ In Ancient Empires 2, a team does not need its commander staying in the castles to purchase new units. Hence, the game objective has changed to defeating all enemy commanders *and* occupying all enemy castles.
	+ In the Companies mode:
		- In the Java version the Blue commanders (Galamar and Valadorn) killed by Red can be revived in the castle in the same way as in Skirmish mode.
		- In the Android version, Blue must keep its commanders alive in any level; when any of the commanders are killed, Blue fails the game.
	+ In the Skirmish mode, defeated commanders can be revived in the castles. Each time a commander is defeated, the cost to revive him increases by $200.

### Gallery

Castles in Ancient Empires 1Castles in Ancient Empires 1Blue castle in Ancient Empires 2Red castle in Ancient Empires 2Green castle in Ancient Empires 2Black castle in Ancient Empires 2Gray (unoccupied) castle in Ancient Empires 2
## Public buildings (Ancient Empires 2 only)

**Public buildings** are new additions in Ancient Empires 2. They do not yield money for any team. However, they can serve as the rehabilitation locations for any unit of any team on the battlefield.

Just the same as farms and castles, each public building provides **15** aggregated defense for the unit standing on it, and gives **20** points of health to that unit at the beginning of the turns of that color.

There are two types of public buildings: **temples** and **wells**.

### Temples

In Companies mode, the temples are the buildings in which the crystals are stored. The game is about defending the crystals against the enemies.

### Wells

In Companies mode, the wells are the buildings in which the ambush enemies come out.

## Appearance of buildings in Companies mode

### Appearance in Companies (Ancient Empires 1)

1. ↑ After several turns, Valadorn will show up and occupy the castle on the northwest corner.
2. ↑ The Blue team will lose its only farm on the northwest immediately when Red starts to deploy troops.
3. ↑ 3.0 3.1 3.2 Using the given troops at the beginning, Blue can occupy at most 3 farms and the southeast castle.

### Appearance in Companies (Ancient Empires 2)

1. ↑ **Temple of Courage**
2. ↑ The Blue commander (Valadorn) needs to take at least 3 turns to occupy the castle on the west. Then he must defeat the Red enemies and occupy the castle on the east.
3. ↑ The Red commander (Demon Lord) will occupy the castle on the east immediately after the game starts.
4. ↑ **Temple of Wisdom**
5. ↑ **Temple of Life**
6. ↑ Only Blue is possible to capture all the 3 farms. The ambush enemies of Red do not have any troops capable of capturing farms.
7. ↑ The Blue commander Galamar has to occupy the east castle first. Then, as the game progresses into the second stage, he needs to unite with Valadorn, and then travel to the west to occupy the Red castle there.
8. ↑ As the game progresses into the second stage, the Red commander (Demon Lord) will show up and occupy the castle on the west.

## Notes

1. ↑ 1.0 1.1 1.2 In Ancient Empires 1, the unit is called **"king"** in the Java version and **"knight"** in the Android version.
2. ↑ 2.0 2.1 2.2 In Ancient Empires 2 there are four different commanders: **Galamar** / **Valadorn** / **Demon Lord** / **Saeth**. However, each of them have the same attributes and functionalities.
3. ↑ 3.0 3.1 In Ancient Empires 2, in skirmish mode it is possible to specify "**allies**". For example, if Red and Black are both set to **Team 1**, then they form an allies.
For more details please visit Skirmish#Allies.