Wait, is the AoE source code public?

Sadly not. He is part of the current set of developers.