BWAPI
Public Types | Static Public Member Functions
AccessTypeDef Struct Reference

#include <Unit.h>

Inheritance diagram for AccessTypeDef:
Inheritance graph
[legend]

List of all members.

Public Types

enum  type {
  Dead = 0, Lost, Guess, Prediction,
  Partial, Full
}

Static Public Member Functions

static std::string getName (type t)

Detailed Description

Definition at line 7 of file Unit.h.


Member Enumeration Documentation

Enumerator:
Dead 
Lost 
Guess 
Prediction 
Partial 
Full 

Definition at line 9 of file Unit.h.


Member Function Documentation

static std::string AccessTypeDef::getName ( type  t) [inline, static]

Definition at line 19 of file Unit.h.

References Dead, Full, Guess, Lost, Partial, and Prediction.

Referenced by UnitClass::drawUnitPosition().

        {
                switch(t)
                {
                case Dead:
                        return "Dead";
                case Lost:
                        return "Lost";
                case Guess:
                        return "Guess";
                case Prediction:
                        return "Prediction";
                case Partial:
                        return "Partial";
                case Full:
                        return "Full";
                }
                return "None";
        }

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines