예제 #1
0
int room_goto_first()
{
    enigma::roomstruct *rit = enigma::roomorder[0];
    errcheck_o(0,"Game must have at least one room to do anything");
    rit->gotome();
    return 0;
}
예제 #2
0
int room_goto_first(bool restart_game)
{
    errcheck_o(0,"Game must have at least one room to do anything");
    enigma::roomstruct *rit = enigma::roomorder[0];
    enigma::room_switching_id = rit->id;
    enigma::room_switching_restartgame = restart_game;
    return 1;
}
예제 #3
0
int room_goto_absolute(int index)
{
	errcheck_o(index,"Room index out of range");
	enigma::roomstruct *rit = enigma::roomorder[index];
	int indx = rit->id;

	enigma::roomdata[indx]->gotome();
	return 0;
}
예제 #4
0
int room_goto_absolute(int indx)
{
  errcheck_o(indx,"Room index out of range");
  enigma::roomstruct *rit = enigma::roomorder[indx];
  int index = rit->id;

  enigma::room_switching_id = index;
  enigma::room_switching_restartgame = false;
  return 1;
}