cz.cuni.amis.pogamut.defcon.example
Enum ExampleBotLogicController.PrecomputingStage

Package class diagram package ExampleBotLogicController.PrecomputingStage
java.lang.Object
  extended by java.lang.Enum<ExampleBotLogicController.PrecomputingStage>
      extended by cz.cuni.amis.pogamut.defcon.example.ExampleBotLogicController.PrecomputingStage
All Implemented Interfaces:
Serializable, Comparable<ExampleBotLogicController.PrecomputingStage>
Enclosing class:
ExampleBotLogicController

protected static enum ExampleBotLogicController.PrecomputingStage
extends Enum<ExampleBotLogicController.PrecomputingStage>

Since this bot is implemented as a state machine we have to declare states.

Author:
Radek 'Black_Hand' Pibil

Enum Constant Summary
ASSIGN_BUILDING_AIS
           
CREATING_CLOSEST_POINTS
           
CREATING_GAMEMAP_POLYS
           
CREATING_QUADTREES
           
DONE
           
FINISHED_GAMEMAP_POLYS
           
FINISHED_QUADTREES
           
PLACING_AIR_BASE
           
PLACING_RADAR
           
PLACING_SHIPS
           
PLACING_SILO
           
START
           
 
Method Summary
static ExampleBotLogicController.PrecomputingStage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExampleBotLogicController.PrecomputingStage[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final ExampleBotLogicController.PrecomputingStage START

CREATING_GAMEMAP_POLYS

public static final ExampleBotLogicController.PrecomputingStage CREATING_GAMEMAP_POLYS

FINISHED_GAMEMAP_POLYS

public static final ExampleBotLogicController.PrecomputingStage FINISHED_GAMEMAP_POLYS

CREATING_QUADTREES

public static final ExampleBotLogicController.PrecomputingStage CREATING_QUADTREES

FINISHED_QUADTREES

public static final ExampleBotLogicController.PrecomputingStage FINISHED_QUADTREES

CREATING_CLOSEST_POINTS

public static final ExampleBotLogicController.PrecomputingStage CREATING_CLOSEST_POINTS

PLACING_SHIPS

public static final ExampleBotLogicController.PrecomputingStage PLACING_SHIPS

PLACING_RADAR

public static final ExampleBotLogicController.PrecomputingStage PLACING_RADAR

PLACING_SILO

public static final ExampleBotLogicController.PrecomputingStage PLACING_SILO

PLACING_AIR_BASE

public static final ExampleBotLogicController.PrecomputingStage PLACING_AIR_BASE

ASSIGN_BUILDING_AIS

public static final ExampleBotLogicController.PrecomputingStage ASSIGN_BUILDING_AIS

DONE

public static final ExampleBotLogicController.PrecomputingStage DONE
Method Detail

values

public static ExampleBotLogicController.PrecomputingStage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ExampleBotLogicController.PrecomputingStage c : ExampleBotLogicController.PrecomputingStage.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExampleBotLogicController.PrecomputingStage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


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