/** ** Add the costs of an unit type to resources ** ** @param type Type of unit. */ void CPlayer::AddUnitType(const CUnitType &type) { AddCosts(type.Stats[this->Index].Costs); }
/** ** Add the costs of an unit type to resources ** ** @param type Type of unit. */ void CPlayer::AddUnitType(const CUnitType &type) { // FIXME: a player could make money by upgrading and than cancel AddCosts(type.Stats[this->Index].Costs); }