Structs.hh
/**
 * Conversion from char to bonus.
 */
Conversion from char to bonus.
Conversion from char to bonus .
inline int char2BonusType (char c) {
  switch (c) {
  case 'm': return Money;
  case 'f': return Food;
  case 'n': return NoBonus;
  }
  return -1; 
}
inline int char2BonusType ( char c ) { switch ( c ) { case ' ' : return Money ; case ' ' : return Food ; case ' ' : return NoBonus ; } return -1 ; }
Conversion from char to bonus.
Conversion from char to bonus .
// Can't abort: if data is corrupted, master will fail.