1 package cz.cuni.amis.pogamut.usar2004.agent.module.nfo;
2
3 import cz.cuni.amis.pogamut.usar2004.agent.USAR2004Bot;
4
5 /**
6 * Nfo message representative for Begin info of current level.
7 *
8 * @author vejmanm
9 */
10 public class NfoBeginMapInfo extends SuperNfo
11 {
12 /**
13 * Ctor. Nfo type describes particular subject about which we want to know
14 * about. It is used to distinguish incoming message from the server.
15 *
16 * @param bot USAR2004Bot variable for filling base class.
17 */
18 public NfoBeginMapInfo(USAR2004Bot bot)
19 {
20 super(bot, "MapInfo");
21 }
22
23 /**
24 * Initial NFO message recieved from the server will provide information
25 * such as Time Limit.
26 *
27 * @return Returns the time limit for current map.
28 */
29 public double getTimeLimit()
30 {
31 return lastMessage.getTimeLimit();
32 }
33
34 /**
35 * Initial NFO message recieved from the server will provide information
36 * such as Level Name.
37 *
38 * @return Returns name of current map.
39 */
40 public String getLevel()
41 {
42 return lastMessage.getLevel();
43 }
44
45 /**
46 * Initial NFO message recieved from the server will provide information
47 * such as Game Type.
48 *
49 * @return Returns a Unreal type of current game.
50 */
51 public String getGameType()
52 {
53 return lastMessage.getGameType();
54 }
55 }