Structs.hh
/**
 * Conversion from char to weapon.
 */
Conversion from char to weapon.
Conversion from char to weapon .
inline int char2WeaponType (char c) {
  switch (c) {
  case 'h': return Hammer;
  case 'g': return Gun;
  case 'b': return Bazooka;
  case 'n': return NoWeapon;
  }
  return -1; 
}
inline int char2WeaponType ( char c ) { switch ( c ) { case ' ' : return Hammer ; case ' ' : return Gun ; case ' ' : return Bazooka ; case ' ' : return NoWeapon ; } return -1 ; }
Conversion from char to weapon.
Conversion from char to weapon .
// Can't abort: if data is corrupted, master will fail.