cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class SetRoute

Package class diagram package SetRoute
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.SetRoute

public class SetRoute
extends CommandMessage

Representation of the GameBots2004 command SETROUTE. Set whether you want to draw blue lines between supported locations in the game. You need to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines are drawn between neighbouring points. First is point 0.


Field Summary
protected  Boolean Erase
          If true will erase previously set points.
protected  Location P0
          Location point.
protected  Location P1
          Location point.
protected  Location P10
          Location point.
protected  Location P11
          Location point.
protected  Location P12
          Location point.
protected  Location P13
          Location point.
protected  Location P14
          Location point.
protected  Location P15
          Location point.
protected  Location P16
          Location point.
protected  Location P17
          Location point.
protected  Location P18
          Location point.
protected  Location P19
          Location point.
protected  Location P2
          Location point.
protected  Location P20
          Location point.
protected  Location P21
          Location point.
protected  Location P22
          Location point.
protected  Location P23
          Location point.
protected  Location P24
          Location point.
protected  Location P25
          Location point.
protected  Location P26
          Location point.
protected  Location P27
          Location point.
protected  Location P28
          Location point.
protected  Location P29
          Location point.
protected  Location P3
          Location point.
protected  Location P30
          Location point.
protected  Location P31
          Location point.
protected  Location P4
          Location point.
protected  Location P5
          Location point.
protected  Location P6
          Location point.
protected  Location P7
          Location point.
protected  Location P8
          Location point.
protected  Location P9
          Location point.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
SetRoute()
          Creates new instance of command SetRoute.
SetRoute(Boolean Erase, Location P0, Location P1, Location P2, Location P3, Location P4, Location P5, Location P6, Location P7, Location P8, Location P9, Location P10, Location P11, Location P12, Location P13, Location P14, Location P15, Location P16, Location P17, Location P18, Location P19, Location P20, Location P21, Location P22, Location P23, Location P24, Location P25, Location P26, Location P27, Location P28, Location P29, Location P30, Location P31)
          Creates new instance of command SetRoute.
SetRoute(SetRoute original)
          Cloning constructor.
 
Method Summary
 Location getP0()
          Location point.
 Location getP1()
          Location point.
 Location getP10()
          Location point.
 Location getP11()
          Location point.
 Location getP12()
          Location point.
 Location getP13()
          Location point.
 Location getP14()
          Location point.
 Location getP15()
          Location point.
 Location getP16()
          Location point.
 Location getP17()
          Location point.
 Location getP18()
          Location point.
 Location getP19()
          Location point.
 Location getP2()
          Location point.
 Location getP20()
          Location point.
 Location getP21()
          Location point.
 Location getP22()
          Location point.
 Location getP23()
          Location point.
 Location getP24()
          Location point.
 Location getP25()
          Location point.
 Location getP26()
          Location point.
 Location getP27()
          Location point.
 Location getP28()
          Location point.
 Location getP29()
          Location point.
 Location getP3()
          Location point.
 Location getP30()
          Location point.
 Location getP31()
          Location point.
 Location getP4()
          Location point.
 Location getP5()
          Location point.
 Location getP6()
          Location point.
 Location getP7()
          Location point.
 Location getP8()
          Location point.
 Location getP9()
          Location point.
 Boolean isErase()
          If true will erase previously set points.
 SetRoute setErase(Boolean Erase)
          If true will erase previously set points.
 SetRoute setP0(Location P0)
          Location point.
 SetRoute setP1(Location P1)
          Location point.
 SetRoute setP10(Location P10)
          Location point.
 SetRoute setP11(Location P11)
          Location point.
 SetRoute setP12(Location P12)
          Location point.
 SetRoute setP13(Location P13)
          Location point.
 SetRoute setP14(Location P14)
          Location point.
 SetRoute setP15(Location P15)
          Location point.
 SetRoute setP16(Location P16)
          Location point.
 SetRoute setP17(Location P17)
          Location point.
 SetRoute setP18(Location P18)
          Location point.
 SetRoute setP19(Location P19)
          Location point.
 SetRoute setP2(Location P2)
          Location point.
 SetRoute setP20(Location P20)
          Location point.
 SetRoute setP21(Location P21)
          Location point.
 SetRoute setP22(Location P22)
          Location point.
 SetRoute setP23(Location P23)
          Location point.
 SetRoute setP24(Location P24)
          Location point.
 SetRoute setP25(Location P25)
          Location point.
 SetRoute setP26(Location P26)
          Location point.
 SetRoute setP27(Location P27)
          Location point.
 SetRoute setP28(Location P28)
          Location point.
 SetRoute setP29(Location P29)
          Location point.
 SetRoute setP3(Location P3)
          Location point.
 SetRoute setP30(Location P30)
          Location point.
 SetRoute setP31(Location P31)
          Location point.
 SetRoute setP4(Location P4)
          Location point.
 SetRoute setP5(Location P5)
          Location point.
 SetRoute setP6(Location P6)
          Location point.
 SetRoute setP7(Location P7)
          Location point.
 SetRoute setP8(Location P8)
          Location point.
 SetRoute setP9(Location P9)
          Location point.
 SetRoute setRoute(List<? extends ILocated> route)
           
 String toHtmlString()
           
 String toMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Erase

protected Boolean Erase
If true will erase previously set points.


P0

protected Location P0
Location point.


P1

protected Location P1
Location point.


P2

protected Location P2
Location point.


P3

protected Location P3
Location point.


P4

protected Location P4
Location point.


P5

protected Location P5
Location point.


P6

protected Location P6
Location point.


P7

protected Location P7
Location point.


P8

protected Location P8
Location point.


P9

protected Location P9
Location point.


P10

protected Location P10
Location point.


P11

protected Location P11
Location point.


P12

protected Location P12
Location point.


P13

protected Location P13
Location point.


P14

protected Location P14
Location point.


P15

protected Location P15
Location point.


P16

protected Location P16
Location point.


P17

protected Location P17
Location point.


P18

protected Location P18
Location point.


P19

protected Location P19
Location point.


P20

protected Location P20
Location point.


P21

protected Location P21
Location point.


P22

protected Location P22
Location point.


P23

protected Location P23
Location point.


P24

protected Location P24
Location point.


P25

protected Location P25
Location point.


P26

protected Location P26
Location point.


P27

protected Location P27
Location point.


P28

protected Location P28
Location point.


P29

protected Location P29
Location point.


P30

protected Location P30
Location point.


P31

protected Location P31
Location point.

Constructor Detail

SetRoute

public SetRoute(Boolean Erase,
                Location P0,
                Location P1,
                Location P2,
                Location P3,
                Location P4,
                Location P5,
                Location P6,
                Location P7,
                Location P8,
                Location P9,
                Location P10,
                Location P11,
                Location P12,
                Location P13,
                Location P14,
                Location P15,
                Location P16,
                Location P17,
                Location P18,
                Location P19,
                Location P20,
                Location P21,
                Location P22,
                Location P23,
                Location P24,
                Location P25,
                Location P26,
                Location P27,
                Location P28,
                Location P29,
                Location P30,
                Location P31)
Creates new instance of command SetRoute. Set whether you want to draw blue lines between supported locations in the game. You need to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines are drawn between neighbouring points. First is point 0. Corresponding GameBots message for this command is SETROUTE.

Parameters:
Erase - If true will erase previously set points.
P0 - Location point.
P1 - Location point.
P2 - Location point.
P3 - Location point.
P4 - Location point.
P5 - Location point.
P6 - Location point.
P7 - Location point.
P8 - Location point.
P9 - Location point.
P10 - Location point.
P11 - Location point.
P12 - Location point.
P13 - Location point.
P14 - Location point.
P15 - Location point.
P16 - Location point.
P17 - Location point.
P18 - Location point.
P19 - Location point.
P20 - Location point.
P21 - Location point.
P22 - Location point.
P23 - Location point.
P24 - Location point.
P25 - Location point.
P26 - Location point.
P27 - Location point.
P28 - Location point.
P29 - Location point.
P30 - Location point.
P31 - Location point.

SetRoute

public SetRoute()
Creates new instance of command SetRoute. Set whether you want to draw blue lines between supported locations in the game. You need to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines are drawn between neighbouring points. First is point 0. Corresponding GameBots message for this command is SETROUTE.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


SetRoute

public SetRoute(SetRoute original)
Cloning constructor.

Parameters:
original -
Method Detail

isErase

public Boolean isErase()
If true will erase previously set points.


setErase

public SetRoute setErase(Boolean Erase)
If true will erase previously set points.


getP0

public Location getP0()
Location point.


setP0

public SetRoute setP0(Location P0)
Location point.


getP1

public Location getP1()
Location point.


setP1

public SetRoute setP1(Location P1)
Location point.


getP2

public Location getP2()
Location point.


setP2

public SetRoute setP2(Location P2)
Location point.


getP3

public Location getP3()
Location point.


setP3

public SetRoute setP3(Location P3)
Location point.


getP4

public Location getP4()
Location point.


setP4

public SetRoute setP4(Location P4)
Location point.


getP5

public Location getP5()
Location point.


setP5

public SetRoute setP5(Location P5)
Location point.


getP6

public Location getP6()
Location point.


setP6

public SetRoute setP6(Location P6)
Location point.


getP7

public Location getP7()
Location point.


setP7

public SetRoute setP7(Location P7)
Location point.


getP8

public Location getP8()
Location point.


setP8

public SetRoute setP8(Location P8)
Location point.


getP9

public Location getP9()
Location point.


setP9

public SetRoute setP9(Location P9)
Location point.


getP10

public Location getP10()
Location point.


setP10

public SetRoute setP10(Location P10)
Location point.


getP11

public Location getP11()
Location point.


setP11

public SetRoute setP11(Location P11)
Location point.


getP12

public Location getP12()
Location point.


setP12

public SetRoute setP12(Location P12)
Location point.


getP13

public Location getP13()
Location point.


setP13

public SetRoute setP13(Location P13)
Location point.


getP14

public Location getP14()
Location point.


setP14

public SetRoute setP14(Location P14)
Location point.


getP15

public Location getP15()
Location point.


setP15

public SetRoute setP15(Location P15)
Location point.


getP16

public Location getP16()
Location point.


setP16

public SetRoute setP16(Location P16)
Location point.


getP17

public Location getP17()
Location point.


setP17

public SetRoute setP17(Location P17)
Location point.


getP18

public Location getP18()
Location point.


setP18

public SetRoute setP18(Location P18)
Location point.


getP19

public Location getP19()
Location point.


setP19

public SetRoute setP19(Location P19)
Location point.


getP20

public Location getP20()
Location point.


setP20

public SetRoute setP20(Location P20)
Location point.


getP21

public Location getP21()
Location point.


setP21

public SetRoute setP21(Location P21)
Location point.


getP22

public Location getP22()
Location point.


setP22

public SetRoute setP22(Location P22)
Location point.


getP23

public Location getP23()
Location point.


setP23

public SetRoute setP23(Location P23)
Location point.


getP24

public Location getP24()
Location point.


setP24

public SetRoute setP24(Location P24)
Location point.


getP25

public Location getP25()
Location point.


setP25

public SetRoute setP25(Location P25)
Location point.


getP26

public Location getP26()
Location point.


setP26

public SetRoute setP26(Location P26)
Location point.


getP27

public Location getP27()
Location point.


setP27

public SetRoute setP27(Location P27)
Location point.


getP28

public Location getP28()
Location point.


setP28

public SetRoute setP28(Location P28)
Location point.


getP29

public Location getP29()
Location point.


setP29

public SetRoute setP29(Location P29)
Location point.


getP30

public Location getP30()
Location point.


setP30

public SetRoute setP30(Location P30)
Location point.


getP31

public Location getP31()
Location point.


setP31

public SetRoute setP31(Location P31)
Location point.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()

setRoute

public SetRoute setRoute(List<? extends ILocated> route)


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.