BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends
messages::Player Class Reference

#include <unit.pb.h>

Inheritance diagram for messages::Player:
Inheritance graph
[legend]
Collaboration diagram for messages::Player:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Player ()
virtual ~Player ()
 Player (const Player &from)
Playeroperator= (const Player &from)
const
::google::protobuf::UnknownFieldSet
unknown_fields () const
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields ()
void Swap (Player *other)
PlayerNew () const
void CopyFrom (const ::google::protobuf::Message &from)
void MergeFrom (const ::google::protobuf::Message &from)
void CopyFrom (const Player &from)
void MergeFrom (const Player &from)
void Clear ()
bool IsInitialized () const
int ByteSize () const
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input)
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const
::google::protobuf::uint8SerializeWithCachedSizesToArray (::google::protobuf::uint8 *output) const
int GetCachedSize () const
::google::protobuf::Metadata GetMetadata () const
bool has_id () const
void clear_id ()
inline::google::protobuf::int32 id () const
void set_id (::google::protobuf::int32 value)
bool has_name () const
void clear_name ()
const ::std::string & name () const
void set_name (const ::std::string &value)
void set_name (const char *value)
void set_name (const char *value, size_t size)
inline::std::string * mutable_name ()
int units_size () const
void clear_units ()
const ::messages::UnitIdunits (int index) const
inline::messages::UnitId * mutable_units (int index)
inline::messages::UnitId * add_units ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitId > & 
units () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitId > * 
mutable_units ()
bool has_race () const
void clear_race ()
messages::Race race () const
void set_race (messages::Race value)
int stances_size () const
void clear_stances ()
const ::messages::PlayerStatusstances (int index) const
inline::messages::PlayerStatus * mutable_stances (int index)
inline::messages::PlayerStatus * add_stances ()
const
::google::protobuf::RepeatedPtrField
< ::messages::PlayerStatus > & 
stances () const
inline::google::protobuf::RepeatedPtrField
< ::messages::PlayerStatus > * 
mutable_stances ()
bool has_neutral () const
void clear_neutral ()
bool neutral () const
void set_neutral (bool value)
bool has_startlocation () const
void clear_startlocation ()
const ::messages::TilePositionstartlocation () const
inline::messages::TilePosition * mutable_startlocation ()
bool has_leftgame () const
void clear_leftgame ()
bool leftgame () const
void set_leftgame (bool value)
bool has_minerals () const
void clear_minerals ()
inline::google::protobuf::int32 minerals () const
void set_minerals (::google::protobuf::int32 value)
bool has_gas () const
void clear_gas ()
inline::google::protobuf::int32 gas () const
void set_gas (::google::protobuf::int32 value)
bool has_cumulativeminerals () const
void clear_cumulativeminerals ()
inline::google::protobuf::int32 cumulativeminerals () const
void set_cumulativeminerals (::google::protobuf::int32 value)
bool has_cumulativegas () const
void clear_cumulativegas ()
inline::google::protobuf::int32 cumulativegas () const
void set_cumulativegas (::google::protobuf::int32 value)
bool has_supplytotal () const
void clear_supplytotal ()
inline::google::protobuf::int32 supplytotal () const
void set_supplytotal (::google::protobuf::int32 value)
bool has_supplyused () const
void clear_supplyused ()
inline::google::protobuf::int32 supplyused () const
void set_supplyused (::google::protobuf::int32 value)
int allunitcount_size () const
void clear_allunitcount ()
const ::messages::UnitTypeIntPairallunitcount (int index) const
inline::messages::UnitTypeIntPair * mutable_allunitcount (int index)
inline::messages::UnitTypeIntPair * add_allunitcount ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > & 
allunitcount () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > * 
mutable_allunitcount ()
int completedunitcount_size () const
void clear_completedunitcount ()
const ::messages::UnitTypeIntPaircompletedunitcount (int index) const
inline::messages::UnitTypeIntPair * mutable_completedunitcount (int index)
inline::messages::UnitTypeIntPair * add_completedunitcount ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > & 
completedunitcount () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > * 
mutable_completedunitcount ()
int incompleteunitcount_size () const
void clear_incompleteunitcount ()
const ::messages::UnitTypeIntPairincompleteunitcount (int index) const
inline::messages::UnitTypeIntPair * mutable_incompleteunitcount (int index)
inline::messages::UnitTypeIntPair * add_incompleteunitcount ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > & 
incompleteunitcount () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > * 
mutable_incompleteunitcount ()
int deadunitcount_size () const
void clear_deadunitcount ()
const ::messages::UnitTypeIntPairdeadunitcount (int index) const
inline::messages::UnitTypeIntPair * mutable_deadunitcount (int index)
inline::messages::UnitTypeIntPair * add_deadunitcount ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > & 
deadunitcount () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > * 
mutable_deadunitcount ()
int killedunitcount_size () const
void clear_killedunitcount ()
const ::messages::UnitTypeIntPairkilledunitcount (int index) const
inline::messages::UnitTypeIntPair * mutable_killedunitcount (int index)
inline::messages::UnitTypeIntPair * add_killedunitcount ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > & 
killedunitcount () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UnitTypeIntPair > * 
mutable_killedunitcount ()
int upgradelevels_size () const
void clear_upgradelevels ()
const ::messages::UpgradeLevelupgradelevels (int index) const
inline::messages::UpgradeLevel * mutable_upgradelevels (int index)
inline::messages::UpgradeLevel * add_upgradelevels ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UpgradeLevel > & 
upgradelevels () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UpgradeLevel > * 
mutable_upgradelevels ()
int researchedtechs_size () const
void clear_researchedtechs ()
const ::messages::TechTyperesearchedtechs (int index) const
inline::messages::TechType * mutable_researchedtechs (int index)
inline::messages::TechType * add_researchedtechs ()
const
::google::protobuf::RepeatedPtrField
< ::messages::TechType > & 
researchedtechs () const
inline::google::protobuf::RepeatedPtrField
< ::messages::TechType > * 
mutable_researchedtechs ()
int researching_size () const
void clear_researching ()
const ::messages::TechTyperesearching (int index) const
inline::messages::TechType * mutable_researching (int index)
inline::messages::TechType * add_researching ()
const
::google::protobuf::RepeatedPtrField
< ::messages::TechType > & 
researching () const
inline::google::protobuf::RepeatedPtrField
< ::messages::TechType > * 
mutable_researching ()
int upgrading_size () const
void clear_upgrading ()
const ::messages::UpgradeTypeupgrading (int index) const
inline::messages::UpgradeType * mutable_upgrading (int index)
inline::messages::UpgradeType * add_upgrading ()
const
::google::protobuf::RepeatedPtrField
< ::messages::UpgradeType > & 
upgrading () const
inline::google::protobuf::RepeatedPtrField
< ::messages::UpgradeType > * 
mutable_upgrading ()
bool has_self () const
void clear_self ()
bool self () const
void set_self (bool value)
bool has_victorious () const
void clear_victorious ()
bool victorious () const
void set_victorious (bool value)
bool has_defeated () const
void clear_defeated ()
bool defeated () const
void set_defeated (bool value)

Static Public Member Functions

static const
::google::protobuf::Descriptor
descriptor ()
static const Playerdefault_instance ()

Static Public Attributes

static const int kIdFieldNumber = 1
static const int kNameFieldNumber = 2
static const int kUnitsFieldNumber = 3
static const int kRaceFieldNumber = 4
static const int kStancesFieldNumber = 5
static const int kNeutralFieldNumber = 6
static const int kStartLocationFieldNumber = 7
static const int kLeftGameFieldNumber = 8
static const int kMineralsFieldNumber = 9
static const int kGasFieldNumber = 10
static const int kCumulativeMineralsFieldNumber = 11
static const int kCumulativeGasFieldNumber = 12
static const int kSupplyTotalFieldNumber = 13
static const int kSupplyUsedFieldNumber = 14
static const int kAllUnitCountFieldNumber = 15
static const int kCompletedUnitCountFieldNumber = 16
static const int kIncompleteUnitCountFieldNumber = 17
static const int kDeadUnitCountFieldNumber = 18
static const int kKilledUnitCountFieldNumber = 19
static const int kUpgradeLevelsFieldNumber = 20
static const int kResearchedTechsFieldNumber = 21
static const int kResearchingFieldNumber = 22
static const int kUpgradingFieldNumber = 23
static const int kSelfFieldNumber = 24
static const int kVictoriousFieldNumber = 25
static const int kDefeatedFieldNumber = 26

Friends

void protobuf_AddDesc_unit_2eproto ()
void protobuf_AssignDesc_unit_2eproto ()
void protobuf_ShutdownFile_unit_2eproto ()

Constructor & Destructor Documentation

virtual messages::Player::~Player ( ) [virtual]
messages::Player::Player ( const Player from)

Member Function Documentation

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

const ::messages::UnitTypeIntPair & messages::Player::allunitcount ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::allunitcount_size ( ) const [inline]

Here is the call graph for this function:

int messages::Player::ByteSize ( ) const [virtual]

Reimplemented from google::protobuf::Message.

void messages::Player::Clear ( ) [virtual]

Reimplemented from google::protobuf::Message.

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

void messages::Player::clear_gas ( ) [inline]
void messages::Player::clear_id ( ) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

void messages::Player::clear_name ( ) [inline]
void messages::Player::clear_race ( ) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

void messages::Player::clear_self ( ) [inline]

Here is the call graph for this function:

void messages::Player::clear_units ( ) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

const ::messages::UnitTypeIntPair & messages::Player::completedunitcount ( int  index) const [inline]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

void messages::Player::CopyFrom ( const Player from)
const ::messages::UnitTypeIntPair & messages::Player::deadunitcount ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::deadunitcount_size ( ) const [inline]

Here is the call graph for this function:

static const Player& messages::Player::default_instance ( ) [static]
bool messages::Player::defeated ( ) const [inline]
int messages::Player::GetCachedSize ( ) const [inline, virtual]
bool messages::Player::has_cumulativegas ( ) const [inline]
bool messages::Player::has_defeated ( ) const [inline]
bool messages::Player::has_gas ( ) const [inline]
bool messages::Player::has_id ( ) const [inline]
bool messages::Player::has_leftgame ( ) const [inline]
bool messages::Player::has_minerals ( ) const [inline]
bool messages::Player::has_name ( ) const [inline]
bool messages::Player::has_neutral ( ) const [inline]
bool messages::Player::has_race ( ) const [inline]
bool messages::Player::has_self ( ) const [inline]
bool messages::Player::has_startlocation ( ) const [inline]
bool messages::Player::has_supplytotal ( ) const [inline]
bool messages::Player::has_supplyused ( ) const [inline]
bool messages::Player::has_victorious ( ) const [inline]
const ::messages::UnitTypeIntPair & messages::Player::incompleteunitcount ( int  index) const [inline]

Here is the call graph for this function:

Here is the call graph for this function:

bool messages::Player::IsInitialized ( ) const [virtual]

Reimplemented from google::protobuf::Message.

const ::messages::UnitTypeIntPair & messages::Player::killedunitcount ( int  index) const [inline]

Here is the call graph for this function:

Here is the call graph for this function:

bool messages::Player::leftgame ( ) const [inline]
void messages::Player::MergeFrom ( const Player from)

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

std::string * messages::Player::mutable_name ( ) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

const ::std::string & messages::Player::name ( ) const [inline]
bool messages::Player::neutral ( ) const [inline]
Player* messages::Player::New ( ) const [virtual]
Player& messages::Player::operator= ( const Player from) [inline]

Here is the call graph for this function:

const ::messages::TechType & messages::Player::researchedtechs ( int  index) const [inline]

Here is the call graph for this function:

Here is the call graph for this function:

const ::messages::TechType & messages::Player::researching ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::researching_size ( ) const [inline]

Here is the call graph for this function:

bool messages::Player::self ( ) const [inline]

Here is the caller graph for this function:

Here is the caller graph for this function:

void messages::Player::set_defeated ( bool  value) [inline]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void messages::Player::set_leftgame ( bool  value) [inline]

Here is the caller graph for this function:

Here is the caller graph for this function:

void messages::Player::set_name ( const ::std::string &  value) [inline]

Here is the caller graph for this function:

void messages::Player::set_name ( const char *  value) [inline]
void messages::Player::set_name ( const char *  value,
size_t  size 
) [inline]
void messages::Player::set_neutral ( bool  value) [inline]

Here is the caller graph for this function:

void messages::Player::set_race ( messages::Race  value) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void messages::Player::set_self ( bool  value) [inline]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void messages::Player::set_victorious ( bool  value) [inline]

Here is the caller graph for this function:

const ::messages::PlayerStatus & messages::Player::stances ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::stances_size ( ) const [inline]

Here is the call graph for this function:

void messages::Player::Swap ( Player other)
const ::messages::UnitId & messages::Player::units ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::units_size ( ) const [inline]

Here is the call graph for this function:

const ::messages::UpgradeLevel & messages::Player::upgradelevels ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::upgradelevels_size ( ) const [inline]

Here is the call graph for this function:

const ::messages::UpgradeType & messages::Player::upgrading ( int  index) const [inline]

Here is the call graph for this function:

int messages::Player::upgrading_size ( ) const [inline]

Here is the call graph for this function:

bool messages::Player::victorious ( ) const [inline]

Friends And Related Function Documentation

void protobuf_AddDesc_unit_2eproto ( ) [friend]

Member Data Documentation

const int messages::Player::kDefeatedFieldNumber = 26 [static]
const int messages::Player::kGasFieldNumber = 10 [static]
const int messages::Player::kIdFieldNumber = 1 [static]
const int messages::Player::kNameFieldNumber = 2 [static]
const int messages::Player::kNeutralFieldNumber = 6 [static]
const int messages::Player::kRaceFieldNumber = 4 [static]
const int messages::Player::kSelfFieldNumber = 24 [static]
const int messages::Player::kStancesFieldNumber = 5 [static]
const int messages::Player::kUnitsFieldNumber = 3 [static]
const int messages::Player::kUpgradingFieldNumber = 23 [static]

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