A simulator of a mobile ad-hoc network in a hostile environment