}
}
public void makeAnnouncement(int type)
{
SystemMessage sm = new SystemMessage(type);
switch(type)
{
case SystemMessage.TICKETS_ARE_NOW_AVAILABLE_FOR_THE_S1TH_MONSTER_RACE:
case SystemMessage.WE_ARE_NOW_SELLING_TICKETS_FOR_THE_S1TH_MONSTER_RACE:
if(state != ACCEPTING_BETS)
{
state = ACCEPTING_BETS;
startRace();
}
sm.addNumber(_raceNumber);
break;
case SystemMessage.TICKET_SALES_FOR_THE_MONSTER_RACE_WILL_CEASE_IN_S1_MINUTE_S:
case SystemMessage.THE_S2TH_MONSTER_RACE_WILL_BEGIN_IN_S1_MINUTES:
case SystemMessage.THE_RACE_WILL_BEGIN_IN_S1_SECONDS:
sm.addNumber(minutes);
sm.addNumber(_raceNumber);
minutes--;
break;
case SystemMessage.TICKETS_SALES_ARE_CLOSED_FOR_THE_S1TH_MONSTER_RACE_ODDS_ARE_POSTED:
//System.out.println("Sales closed");
sm.addNumber(_raceNumber);
state = WAITING;
minutes = 2;
break;
case SystemMessage.THE_S1TH_MONSTER_RACE_IS_ABOUT_TO_BEGIN_COUNTDOWN_IN_FIVE_SECONDS:
case SystemMessage.MONSTER_RACE_S1_IS_FINISHED:
sm.addNumber(_raceNumber);
minutes = 5;
break;
case SystemMessage.FIRST_PRIZE_GOES_TO_THE_PLAYER_IN_LANE_S1_SECOND_PRIZE_GOES_TO_THE_PLAYER_IN_LANE_S2:
//System.out.println("Placing");
state = RACE_END;
sm.addNumber(MonsterRace.getInstance().getFirstPlace());
sm.addNumber(MonsterRace.getInstance().getSecondPlace());
break;
}
broadcast(sm);
if(type == SystemMessage.THEYRE_OFF)
{