BWAPI
Undermind/proxy/gen/cpp/aimodule.pb.h
Go to the documentation of this file.
00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 // source: aimodule.proto
00003 
00004 #ifndef PROTOBUF_aimodule_2eproto__INCLUDED
00005 #define PROTOBUF_aimodule_2eproto__INCLUDED
00006 
00007 #include <string>
00008 
00009 #include <google/protobuf/stubs/common.h>
00010 
00011 #if GOOGLE_PROTOBUF_VERSION < 2003000
00012 #error This file was generated by a newer version of protoc which is
00013 #error incompatible with your Protocol Buffer headers.  Please update
00014 #error your headers.
00015 #endif
00016 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00017 #error This file was generated by an older version of protoc which is
00018 #error incompatible with your Protocol Buffer headers.  Please
00019 #error regenerate this file with a newer version of protoc.
00020 #endif
00021 
00022 #include <google/protobuf/generated_message_util.h>
00023 #include <google/protobuf/repeated_field.h>
00024 #include <google/protobuf/extension_set.h>
00025 #include <google/protobuf/generated_message_reflection.h>
00026 #include "unit.pb.h"
00027 #include "types.pb.h"
00028 #include "terrain.pb.h"
00029 #include "command.pb.h"
00030 #include "draw.pb.h"
00031 // @@protoc_insertion_point(includes)
00032 
00033 namespace messages {
00034 
00035 // Internal implementation detail -- do not call these.
00036 void  protobuf_AddDesc_aimodule_2eproto();
00037 void protobuf_AssignDesc_aimodule_2eproto();
00038 void protobuf_ShutdownFile_aimodule_2eproto();
00039 
00040 class PlayerText;
00041 class FrameMessage;
00042 class FrameCommands;
00043 
00044 enum Flag {
00045   CompleteMapInformation = 0,
00046   UserInput = 1
00047 };
00048 bool Flag_IsValid(int value);
00049 const Flag Flag_MIN = CompleteMapInformation;
00050 const Flag Flag_MAX = UserInput;
00051 const int Flag_ARRAYSIZE = Flag_MAX + 1;
00052 
00053 const ::google::protobuf::EnumDescriptor* Flag_descriptor();
00054 inline const ::std::string& Flag_Name(Flag value) {
00055   return ::google::protobuf::internal::NameOfEnum(
00056     Flag_descriptor(), value);
00057 }
00058 inline bool Flag_Parse(
00059     const ::std::string& name, Flag* value) {
00060   return ::google::protobuf::internal::ParseNamedEnum<Flag>(
00061     Flag_descriptor(), name, value);
00062 }
00063 // ===================================================================
00064 
00065 class PlayerText : public ::google::protobuf::Message {
00066  public:
00067   PlayerText();
00068   virtual ~PlayerText();
00069   
00070   PlayerText(const PlayerText& from);
00071   
00072   inline PlayerText& operator=(const PlayerText& from) {
00073     CopyFrom(from);
00074     return *this;
00075   }
00076   
00077   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00078     return _unknown_fields_;
00079   }
00080   
00081   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00082     return &_unknown_fields_;
00083   }
00084   
00085   static const ::google::protobuf::Descriptor* descriptor();
00086   static const PlayerText& default_instance();
00087   
00088   void Swap(PlayerText* other);
00089   
00090   // implements Message ----------------------------------------------
00091   
00092   PlayerText* New() const;
00093   void CopyFrom(const ::google::protobuf::Message& from);
00094   void MergeFrom(const ::google::protobuf::Message& from);
00095   void CopyFrom(const PlayerText& from);
00096   void MergeFrom(const PlayerText& from);
00097   void Clear();
00098   bool IsInitialized() const;
00099   
00100   int ByteSize() const;
00101   bool MergePartialFromCodedStream(
00102       ::google::protobuf::io::CodedInputStream* input);
00103   void SerializeWithCachedSizes(
00104       ::google::protobuf::io::CodedOutputStream* output) const;
00105   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00106   int GetCachedSize() const { return _cached_size_; }
00107   private:
00108   void SharedCtor();
00109   void SharedDtor();
00110   void SetCachedSize(int size) const;
00111   public:
00112   
00113   ::google::protobuf::Metadata GetMetadata() const;
00114   
00115   // nested types ----------------------------------------------------
00116   
00117   // accessors -------------------------------------------------------
00118   
00119   // required int32 player = 1;
00120   inline bool has_player() const;
00121   inline void clear_player();
00122   static const int kPlayerFieldNumber = 1;
00123   inline ::google::protobuf::int32 player() const;
00124   inline void set_player(::google::protobuf::int32 value);
00125   
00126   // required string text = 2;
00127   inline bool has_text() const;
00128   inline void clear_text();
00129   static const int kTextFieldNumber = 2;
00130   inline const ::std::string& text() const;
00131   inline void set_text(const ::std::string& value);
00132   inline void set_text(const char* value);
00133   inline void set_text(const char* value, size_t size);
00134   inline ::std::string* mutable_text();
00135   
00136   // @@protoc_insertion_point(class_scope:messages.PlayerText)
00137  private:
00138   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00139   mutable int _cached_size_;
00140   
00141   ::google::protobuf::int32 player_;
00142   ::std::string* text_;
00143   static const ::std::string _default_text_;
00144   friend void  protobuf_AddDesc_aimodule_2eproto();
00145   friend void protobuf_AssignDesc_aimodule_2eproto();
00146   friend void protobuf_ShutdownFile_aimodule_2eproto();
00147   
00148   ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00149   
00150   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00151   inline bool _has_bit(int index) const {
00152     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00153   }
00154   inline void _set_bit(int index) {
00155     _has_bits_[index / 32] |= (1u << (index % 32));
00156   }
00157   inline void _clear_bit(int index) {
00158     _has_bits_[index / 32] &= ~(1u << (index % 32));
00159   }
00160   
00161   void InitAsDefaultInstance();
00162   static PlayerText* default_instance_;
00163 };
00164 // -------------------------------------------------------------------
00165 
00166 class FrameMessage : public ::google::protobuf::Message {
00167  public:
00168   FrameMessage();
00169   virtual ~FrameMessage();
00170   
00171   FrameMessage(const FrameMessage& from);
00172   
00173   inline FrameMessage& operator=(const FrameMessage& from) {
00174     CopyFrom(from);
00175     return *this;
00176   }
00177   
00178   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00179     return _unknown_fields_;
00180   }
00181   
00182   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00183     return &_unknown_fields_;
00184   }
00185   
00186   static const ::google::protobuf::Descriptor* descriptor();
00187   static const FrameMessage& default_instance();
00188   
00189   void Swap(FrameMessage* other);
00190   
00191   // implements Message ----------------------------------------------
00192   
00193   FrameMessage* New() const;
00194   void CopyFrom(const ::google::protobuf::Message& from);
00195   void MergeFrom(const ::google::protobuf::Message& from);
00196   void CopyFrom(const FrameMessage& from);
00197   void MergeFrom(const FrameMessage& from);
00198   void Clear();
00199   bool IsInitialized() const;
00200   
00201   int ByteSize() const;
00202   bool MergePartialFromCodedStream(
00203       ::google::protobuf::io::CodedInputStream* input);
00204   void SerializeWithCachedSizes(
00205       ::google::protobuf::io::CodedOutputStream* output) const;
00206   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00207   int GetCachedSize() const { return _cached_size_; }
00208   private:
00209   void SharedCtor();
00210   void SharedDtor();
00211   void SetCachedSize(int size) const;
00212   public:
00213   
00214   ::google::protobuf::Metadata GetMetadata() const;
00215   
00216   // nested types ----------------------------------------------------
00217   
00218   // accessors -------------------------------------------------------
00219   
00220   // required int32 frameCount = 1;
00221   inline bool has_framecount() const;
00222   inline void clear_framecount();
00223   static const int kFrameCountFieldNumber = 1;
00224   inline ::google::protobuf::int32 framecount() const;
00225   inline void set_framecount(::google::protobuf::int32 value);
00226   
00227   // required int32 mouseX = 27;
00228   inline bool has_mousex() const;
00229   inline void clear_mousex();
00230   static const int kMouseXFieldNumber = 27;
00231   inline ::google::protobuf::int32 mousex() const;
00232   inline void set_mousex(::google::protobuf::int32 value);
00233   
00234   // required int32 mouseY = 28;
00235   inline bool has_mousey() const;
00236   inline void clear_mousey();
00237   static const int kMouseYFieldNumber = 28;
00238   inline ::google::protobuf::int32 mousey() const;
00239   inline void set_mousey(::google::protobuf::int32 value);
00240   
00241   // required int32 screenX = 4;
00242   inline bool has_screenx() const;
00243   inline void clear_screenx();
00244   static const int kScreenXFieldNumber = 4;
00245   inline ::google::protobuf::int32 screenx() const;
00246   inline void set_screenx(::google::protobuf::int32 value);
00247   
00248   // required int32 screenY = 5;
00249   inline bool has_screeny() const;
00250   inline void clear_screeny();
00251   static const int kScreenYFieldNumber = 5;
00252   inline ::google::protobuf::int32 screeny() const;
00253   inline void set_screeny(::google::protobuf::int32 value);
00254   
00255   // repeated .messages.Unit units = 6;
00256   inline int units_size() const;
00257   inline void clear_units();
00258   static const int kUnitsFieldNumber = 6;
00259   inline const ::messages::Unit& units(int index) const;
00260   inline ::messages::Unit* mutable_units(int index);
00261   inline ::messages::Unit* add_units();
00262   inline const ::google::protobuf::RepeatedPtrField< ::messages::Unit >&
00263       units() const;
00264   inline ::google::protobuf::RepeatedPtrField< ::messages::Unit >*
00265       mutable_units();
00266   
00267   // repeated .messages.Bullet bullets = 3;
00268   inline int bullets_size() const;
00269   inline void clear_bullets();
00270   static const int kBulletsFieldNumber = 3;
00271   inline const ::messages::Bullet& bullets(int index) const;
00272   inline ::messages::Bullet* mutable_bullets(int index);
00273   inline ::messages::Bullet* add_bullets();
00274   inline const ::google::protobuf::RepeatedPtrField< ::messages::Bullet >&
00275       bullets() const;
00276   inline ::google::protobuf::RepeatedPtrField< ::messages::Bullet >*
00277       mutable_bullets();
00278   
00279   // repeated .messages.Player players = 20;
00280   inline int players_size() const;
00281   inline void clear_players();
00282   static const int kPlayersFieldNumber = 20;
00283   inline const ::messages::Player& players(int index) const;
00284   inline ::messages::Player* mutable_players(int index);
00285   inline ::messages::Player* add_players();
00286   inline const ::google::protobuf::RepeatedPtrField< ::messages::Player >&
00287       players() const;
00288   inline ::google::protobuf::RepeatedPtrField< ::messages::Player >*
00289       mutable_players();
00290   
00291   // repeated .messages.UnitId createdUnits = 7;
00292   inline int createdunits_size() const;
00293   inline void clear_createdunits();
00294   static const int kCreatedUnitsFieldNumber = 7;
00295   inline const ::messages::UnitId& createdunits(int index) const;
00296   inline ::messages::UnitId* mutable_createdunits(int index);
00297   inline ::messages::UnitId* add_createdunits();
00298   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00299       createdunits() const;
00300   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00301       mutable_createdunits();
00302   
00303   // repeated .messages.UnitId destroyedUnits = 8;
00304   inline int destroyedunits_size() const;
00305   inline void clear_destroyedunits();
00306   static const int kDestroyedUnitsFieldNumber = 8;
00307   inline const ::messages::UnitId& destroyedunits(int index) const;
00308   inline ::messages::UnitId* mutable_destroyedunits(int index);
00309   inline ::messages::UnitId* add_destroyedunits();
00310   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00311       destroyedunits() const;
00312   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00313       mutable_destroyedunits();
00314   
00315   // repeated .messages.UnitId morphedUnits = 9;
00316   inline int morphedunits_size() const;
00317   inline void clear_morphedunits();
00318   static const int kMorphedUnitsFieldNumber = 9;
00319   inline const ::messages::UnitId& morphedunits(int index) const;
00320   inline ::messages::UnitId* mutable_morphedunits(int index);
00321   inline ::messages::UnitId* add_morphedunits();
00322   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00323       morphedunits() const;
00324   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00325       mutable_morphedunits();
00326   
00327   // repeated .messages.UnitId shownUnits = 10;
00328   inline int shownunits_size() const;
00329   inline void clear_shownunits();
00330   static const int kShownUnitsFieldNumber = 10;
00331   inline const ::messages::UnitId& shownunits(int index) const;
00332   inline ::messages::UnitId* mutable_shownunits(int index);
00333   inline ::messages::UnitId* add_shownunits();
00334   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00335       shownunits() const;
00336   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00337       mutable_shownunits();
00338   
00339   // repeated .messages.UnitId hiddenUnits = 11;
00340   inline int hiddenunits_size() const;
00341   inline void clear_hiddenunits();
00342   static const int kHiddenUnitsFieldNumber = 11;
00343   inline const ::messages::UnitId& hiddenunits(int index) const;
00344   inline ::messages::UnitId* mutable_hiddenunits(int index);
00345   inline ::messages::UnitId* add_hiddenunits();
00346   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00347       hiddenunits() const;
00348   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00349       mutable_hiddenunits();
00350   
00351   // repeated .messages.UnitId renegadedUnits = 12;
00352   inline int renegadedunits_size() const;
00353   inline void clear_renegadedunits();
00354   static const int kRenegadedUnitsFieldNumber = 12;
00355   inline const ::messages::UnitId& renegadedunits(int index) const;
00356   inline ::messages::UnitId* mutable_renegadedunits(int index);
00357   inline ::messages::UnitId* add_renegadedunits();
00358   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00359       renegadedunits() const;
00360   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00361       mutable_renegadedunits();
00362   
00363   // repeated int32 leftplayers = 21;
00364   inline int leftplayers_size() const;
00365   inline void clear_leftplayers();
00366   static const int kLeftplayersFieldNumber = 21;
00367   inline ::google::protobuf::int32 leftplayers(int index) const;
00368   inline void set_leftplayers(int index, ::google::protobuf::int32 value);
00369   inline void add_leftplayers(::google::protobuf::int32 value);
00370   inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
00371       leftplayers() const;
00372   inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
00373       mutable_leftplayers();
00374   
00375   // repeated .messages.PlayerText receivedTexts = 22;
00376   inline int receivedtexts_size() const;
00377   inline void clear_receivedtexts();
00378   static const int kReceivedTextsFieldNumber = 22;
00379   inline const ::messages::PlayerText& receivedtexts(int index) const;
00380   inline ::messages::PlayerText* mutable_receivedtexts(int index);
00381   inline ::messages::PlayerText* add_receivedtexts();
00382   inline const ::google::protobuf::RepeatedPtrField< ::messages::PlayerText >&
00383       receivedtexts() const;
00384   inline ::google::protobuf::RepeatedPtrField< ::messages::PlayerText >*
00385       mutable_receivedtexts();
00386   
00387   // repeated .messages.UnitId selectedUnits = 24;
00388   inline int selectedunits_size() const;
00389   inline void clear_selectedunits();
00390   static const int kSelectedUnitsFieldNumber = 24;
00391   inline const ::messages::UnitId& selectedunits(int index) const;
00392   inline ::messages::UnitId* mutable_selectedunits(int index);
00393   inline ::messages::UnitId* add_selectedunits();
00394   inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00395       selectedunits() const;
00396   inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00397       mutable_selectedunits();
00398   
00399   // repeated string sentText = 13;
00400   inline int senttext_size() const;
00401   inline void clear_senttext();
00402   static const int kSentTextFieldNumber = 13;
00403   inline const ::std::string& senttext(int index) const;
00404   inline ::std::string* mutable_senttext(int index);
00405   inline void set_senttext(int index, const ::std::string& value);
00406   inline void set_senttext(int index, const char* value);
00407   inline void set_senttext(int index, const char* value, size_t size);
00408   inline ::std::string* add_senttext();
00409   inline void add_senttext(const ::std::string& value);
00410   inline void add_senttext(const char* value);
00411   inline void add_senttext(const char* value, size_t size);
00412   inline const ::google::protobuf::RepeatedPtrField< ::std::string>& senttext() const;
00413   inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_senttext();
00414   
00415   // optional .messages.Position nukeDetect = 14;
00416   inline bool has_nukedetect() const;
00417   inline void clear_nukedetect();
00418   static const int kNukeDetectFieldNumber = 14;
00419   inline const ::messages::Position& nukedetect() const;
00420   inline ::messages::Position* mutable_nukedetect();
00421   
00422   // required bool paused = 15;
00423   inline bool has_paused() const;
00424   inline void clear_paused();
00425   static const int kPausedFieldNumber = 15;
00426   inline bool paused() const;
00427   inline void set_paused(bool value);
00428   
00429   // required bool replay = 16;
00430   inline bool has_replay() const;
00431   inline void clear_replay();
00432   static const int kReplayFieldNumber = 16;
00433   inline bool replay() const;
00434   inline void set_replay(bool value);
00435   
00436   // required bool multiplayer = 17;
00437   inline bool has_multiplayer() const;
00438   inline void clear_multiplayer();
00439   static const int kMultiplayerFieldNumber = 17;
00440   inline bool multiplayer() const;
00441   inline void set_multiplayer(bool value);
00442   
00443   // optional bool gameover = 23;
00444   inline bool has_gameover() const;
00445   inline void clear_gameover();
00446   static const int kGameoverFieldNumber = 23;
00447   inline bool gameover() const;
00448   inline void set_gameover(bool value);
00449   
00450   // optional bool isWinner = 25;
00451   inline bool has_iswinner() const;
00452   inline void clear_iswinner();
00453   static const int kIsWinnerFieldNumber = 25;
00454   inline bool iswinner() const;
00455   inline void set_iswinner(bool value);
00456   
00457   // required .messages.Position screenPosition = 26;
00458   inline bool has_screenposition() const;
00459   inline void clear_screenposition();
00460   static const int kScreenPositionFieldNumber = 26;
00461   inline const ::messages::Position& screenposition() const;
00462   inline ::messages::Position* mutable_screenposition();
00463   
00464   // required int32 latency = 29;
00465   inline bool has_latency() const;
00466   inline void clear_latency();
00467   static const int kLatencyFieldNumber = 29;
00468   inline ::google::protobuf::int32 latency() const;
00469   inline void set_latency(::google::protobuf::int32 value);
00470   
00471   // required .messages.DynamicTerrainInfo dynamicTerrainInfo = 18;
00472   inline bool has_dynamicterraininfo() const;
00473   inline void clear_dynamicterraininfo();
00474   static const int kDynamicTerrainInfoFieldNumber = 18;
00475   inline const ::messages::DynamicTerrainInfo& dynamicterraininfo() const;
00476   inline ::messages::DynamicTerrainInfo* mutable_dynamicterraininfo();
00477   
00478   // optional .messages.StaticTerrainInfo terrainInfo = 19;
00479   inline bool has_terraininfo() const;
00480   inline void clear_terraininfo();
00481   static const int kTerrainInfoFieldNumber = 19;
00482   inline const ::messages::StaticTerrainInfo& terraininfo() const;
00483   inline ::messages::StaticTerrainInfo* mutable_terraininfo();
00484   
00485   // @@protoc_insertion_point(class_scope:messages.FrameMessage)
00486  private:
00487   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00488   mutable int _cached_size_;
00489   
00490   ::google::protobuf::int32 framecount_;
00491   ::google::protobuf::int32 mousex_;
00492   ::google::protobuf::int32 mousey_;
00493   ::google::protobuf::int32 screenx_;
00494   ::google::protobuf::int32 screeny_;
00495   ::google::protobuf::RepeatedPtrField< ::messages::Unit > units_;
00496   ::google::protobuf::RepeatedPtrField< ::messages::Bullet > bullets_;
00497   ::google::protobuf::RepeatedPtrField< ::messages::Player > players_;
00498   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > createdunits_;
00499   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > destroyedunits_;
00500   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > morphedunits_;
00501   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > shownunits_;
00502   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > hiddenunits_;
00503   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > renegadedunits_;
00504   ::google::protobuf::RepeatedField< ::google::protobuf::int32 > leftplayers_;
00505   ::google::protobuf::RepeatedPtrField< ::messages::PlayerText > receivedtexts_;
00506   ::google::protobuf::RepeatedPtrField< ::messages::UnitId > selectedunits_;
00507   ::google::protobuf::RepeatedPtrField< ::std::string> senttext_;
00508   ::messages::Position* nukedetect_;
00509   bool paused_;
00510   bool replay_;
00511   bool multiplayer_;
00512   bool gameover_;
00513   bool iswinner_;
00514   ::messages::Position* screenposition_;
00515   ::google::protobuf::int32 latency_;
00516   ::messages::DynamicTerrainInfo* dynamicterraininfo_;
00517   ::messages::StaticTerrainInfo* terraininfo_;
00518   friend void  protobuf_AddDesc_aimodule_2eproto();
00519   friend void protobuf_AssignDesc_aimodule_2eproto();
00520   friend void protobuf_ShutdownFile_aimodule_2eproto();
00521   
00522   ::google::protobuf::uint32 _has_bits_[(28 + 31) / 32];
00523   
00524   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00525   inline bool _has_bit(int index) const {
00526     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00527   }
00528   inline void _set_bit(int index) {
00529     _has_bits_[index / 32] |= (1u << (index % 32));
00530   }
00531   inline void _clear_bit(int index) {
00532     _has_bits_[index / 32] &= ~(1u << (index % 32));
00533   }
00534   
00535   void InitAsDefaultInstance();
00536   static FrameMessage* default_instance_;
00537 };
00538 // -------------------------------------------------------------------
00539 
00540 class FrameCommands : public ::google::protobuf::Message {
00541  public:
00542   FrameCommands();
00543   virtual ~FrameCommands();
00544   
00545   FrameCommands(const FrameCommands& from);
00546   
00547   inline FrameCommands& operator=(const FrameCommands& from) {
00548     CopyFrom(from);
00549     return *this;
00550   }
00551   
00552   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00553     return _unknown_fields_;
00554   }
00555   
00556   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00557     return &_unknown_fields_;
00558   }
00559   
00560   static const ::google::protobuf::Descriptor* descriptor();
00561   static const FrameCommands& default_instance();
00562   
00563   void Swap(FrameCommands* other);
00564   
00565   // implements Message ----------------------------------------------
00566   
00567   FrameCommands* New() const;
00568   void CopyFrom(const ::google::protobuf::Message& from);
00569   void MergeFrom(const ::google::protobuf::Message& from);
00570   void CopyFrom(const FrameCommands& from);
00571   void MergeFrom(const FrameCommands& from);
00572   void Clear();
00573   bool IsInitialized() const;
00574   
00575   int ByteSize() const;
00576   bool MergePartialFromCodedStream(
00577       ::google::protobuf::io::CodedInputStream* input);
00578   void SerializeWithCachedSizes(
00579       ::google::protobuf::io::CodedOutputStream* output) const;
00580   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00581   int GetCachedSize() const { return _cached_size_; }
00582   private:
00583   void SharedCtor();
00584   void SharedDtor();
00585   void SetCachedSize(int size) const;
00586   public:
00587   
00588   ::google::protobuf::Metadata GetMetadata() const;
00589   
00590   // nested types ----------------------------------------------------
00591   
00592   // accessors -------------------------------------------------------
00593   
00594   // repeated .messages.Command commands = 1;
00595   inline int commands_size() const;
00596   inline void clear_commands();
00597   static const int kCommandsFieldNumber = 1;
00598   inline const ::messages::Command& commands(int index) const;
00599   inline ::messages::Command* mutable_commands(int index);
00600   inline ::messages::Command* add_commands();
00601   inline const ::google::protobuf::RepeatedPtrField< ::messages::Command >&
00602       commands() const;
00603   inline ::google::protobuf::RepeatedPtrField< ::messages::Command >*
00604       mutable_commands();
00605   
00606   // optional sint32 gameSpeed = 2;
00607   inline bool has_gamespeed() const;
00608   inline void clear_gamespeed();
00609   static const int kGameSpeedFieldNumber = 2;
00610   inline ::google::protobuf::int32 gamespeed() const;
00611   inline void set_gamespeed(::google::protobuf::int32 value);
00612   
00613   // repeated string sendText = 3;
00614   inline int sendtext_size() const;
00615   inline void clear_sendtext();
00616   static const int kSendTextFieldNumber = 3;
00617   inline const ::std::string& sendtext(int index) const;
00618   inline ::std::string* mutable_sendtext(int index);
00619   inline void set_sendtext(int index, const ::std::string& value);
00620   inline void set_sendtext(int index, const char* value);
00621   inline void set_sendtext(int index, const char* value, size_t size);
00622   inline ::std::string* add_sendtext();
00623   inline void add_sendtext(const ::std::string& value);
00624   inline void add_sendtext(const char* value);
00625   inline void add_sendtext(const char* value, size_t size);
00626   inline const ::google::protobuf::RepeatedPtrField< ::std::string>& sendtext() const;
00627   inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_sendtext();
00628   
00629   // repeated string printf = 4;
00630   inline int printf_size() const;
00631   inline void clear_printf();
00632   static const int kPrintfFieldNumber = 4;
00633   inline const ::std::string& printf(int index) const;
00634   inline ::std::string* mutable_printf(int index);
00635   inline void set_printf(int index, const ::std::string& value);
00636   inline void set_printf(int index, const char* value);
00637   inline void set_printf(int index, const char* value, size_t size);
00638   inline ::std::string* add_printf();
00639   inline void add_printf(const ::std::string& value);
00640   inline void add_printf(const char* value);
00641   inline void add_printf(const char* value, size_t size);
00642   inline const ::google::protobuf::RepeatedPtrField< ::std::string>& printf() const;
00643   inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_printf();
00644   
00645   // repeated .messages.Flag flags = 5;
00646   inline int flags_size() const;
00647   inline void clear_flags();
00648   static const int kFlagsFieldNumber = 5;
00649   inline messages::Flag flags(int index) const;
00650   inline void set_flags(int index, messages::Flag value);
00651   inline void add_flags(messages::Flag value);
00652   inline const ::google::protobuf::RepeatedField<int>& flags() const;
00653   inline ::google::protobuf::RepeatedField<int>* mutable_flags();
00654   
00655   // repeated .messages.DrawCommand drawCommands = 6;
00656   inline int drawcommands_size() const;
00657   inline void clear_drawcommands();
00658   static const int kDrawCommandsFieldNumber = 6;
00659   inline const ::messages::DrawCommand& drawcommands(int index) const;
00660   inline ::messages::DrawCommand* mutable_drawcommands(int index);
00661   inline ::messages::DrawCommand* add_drawcommands();
00662   inline const ::google::protobuf::RepeatedPtrField< ::messages::DrawCommand >&
00663       drawcommands() const;
00664   inline ::google::protobuf::RepeatedPtrField< ::messages::DrawCommand >*
00665       mutable_drawcommands();
00666   
00667   // optional .messages.Position screenPosition = 7;
00668   inline bool has_screenposition() const;
00669   inline void clear_screenposition();
00670   static const int kScreenPositionFieldNumber = 7;
00671   inline const ::messages::Position& screenposition() const;
00672   inline ::messages::Position* mutable_screenposition();
00673   
00674   // optional string botName = 8;
00675   inline bool has_botname() const;
00676   inline void clear_botname();
00677   static const int kBotNameFieldNumber = 8;
00678   inline const ::std::string& botname() const;
00679   inline void set_botname(const ::std::string& value);
00680   inline void set_botname(const char* value);
00681   inline void set_botname(const char* value, size_t size);
00682   inline ::std::string* mutable_botname();
00683   
00684   // optional string botCode = 9;
00685   inline bool has_botcode() const;
00686   inline void clear_botcode();
00687   static const int kBotCodeFieldNumber = 9;
00688   inline const ::std::string& botcode() const;
00689   inline void set_botcode(const ::std::string& value);
00690   inline void set_botcode(const char* value);
00691   inline void set_botcode(const char* value, size_t size);
00692   inline ::std::string* mutable_botcode();
00693   
00694   // @@protoc_insertion_point(class_scope:messages.FrameCommands)
00695  private:
00696   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00697   mutable int _cached_size_;
00698   
00699   ::google::protobuf::RepeatedPtrField< ::messages::Command > commands_;
00700   ::google::protobuf::int32 gamespeed_;
00701   ::google::protobuf::RepeatedPtrField< ::std::string> sendtext_;
00702   ::google::protobuf::RepeatedPtrField< ::std::string> printf_;
00703   ::google::protobuf::RepeatedField<int> flags_;
00704   ::google::protobuf::RepeatedPtrField< ::messages::DrawCommand > drawcommands_;
00705   ::messages::Position* screenposition_;
00706   ::std::string* botname_;
00707   static const ::std::string _default_botname_;
00708   ::std::string* botcode_;
00709   static const ::std::string _default_botcode_;
00710   friend void  protobuf_AddDesc_aimodule_2eproto();
00711   friend void protobuf_AssignDesc_aimodule_2eproto();
00712   friend void protobuf_ShutdownFile_aimodule_2eproto();
00713   
00714   ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
00715   
00716   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00717   inline bool _has_bit(int index) const {
00718     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00719   }
00720   inline void _set_bit(int index) {
00721     _has_bits_[index / 32] |= (1u << (index % 32));
00722   }
00723   inline void _clear_bit(int index) {
00724     _has_bits_[index / 32] &= ~(1u << (index % 32));
00725   }
00726   
00727   void InitAsDefaultInstance();
00728   static FrameCommands* default_instance_;
00729 };
00730 // ===================================================================
00731 
00732 
00733 // ===================================================================
00734 
00735 // PlayerText
00736 
00737 // required int32 player = 1;
00738 inline bool PlayerText::has_player() const {
00739   return _has_bit(0);
00740 }
00741 inline void PlayerText::clear_player() {
00742   player_ = 0;
00743   _clear_bit(0);
00744 }
00745 inline ::google::protobuf::int32 PlayerText::player() const {
00746   return player_;
00747 }
00748 inline void PlayerText::set_player(::google::protobuf::int32 value) {
00749   _set_bit(0);
00750   player_ = value;
00751 }
00752 
00753 // required string text = 2;
00754 inline bool PlayerText::has_text() const {
00755   return _has_bit(1);
00756 }
00757 inline void PlayerText::clear_text() {
00758   if (text_ != &_default_text_) {
00759     text_->clear();
00760   }
00761   _clear_bit(1);
00762 }
00763 inline const ::std::string& PlayerText::text() const {
00764   return *text_;
00765 }
00766 inline void PlayerText::set_text(const ::std::string& value) {
00767   _set_bit(1);
00768   if (text_ == &_default_text_) {
00769     text_ = new ::std::string;
00770   }
00771   text_->assign(value);
00772 }
00773 inline void PlayerText::set_text(const char* value) {
00774   _set_bit(1);
00775   if (text_ == &_default_text_) {
00776     text_ = new ::std::string;
00777   }
00778   text_->assign(value);
00779 }
00780 inline void PlayerText::set_text(const char* value, size_t size) {
00781   _set_bit(1);
00782   if (text_ == &_default_text_) {
00783     text_ = new ::std::string;
00784   }
00785   text_->assign(reinterpret_cast<const char*>(value), size);
00786 }
00787 inline ::std::string* PlayerText::mutable_text() {
00788   _set_bit(1);
00789   if (text_ == &_default_text_) {
00790     text_ = new ::std::string;
00791   }
00792   return text_;
00793 }
00794 
00795 // -------------------------------------------------------------------
00796 
00797 // FrameMessage
00798 
00799 // required int32 frameCount = 1;
00800 inline bool FrameMessage::has_framecount() const {
00801   return _has_bit(0);
00802 }
00803 inline void FrameMessage::clear_framecount() {
00804   framecount_ = 0;
00805   _clear_bit(0);
00806 }
00807 inline ::google::protobuf::int32 FrameMessage::framecount() const {
00808   return framecount_;
00809 }
00810 inline void FrameMessage::set_framecount(::google::protobuf::int32 value) {
00811   _set_bit(0);
00812   framecount_ = value;
00813 }
00814 
00815 // required int32 mouseX = 27;
00816 inline bool FrameMessage::has_mousex() const {
00817   return _has_bit(1);
00818 }
00819 inline void FrameMessage::clear_mousex() {
00820   mousex_ = 0;
00821   _clear_bit(1);
00822 }
00823 inline ::google::protobuf::int32 FrameMessage::mousex() const {
00824   return mousex_;
00825 }
00826 inline void FrameMessage::set_mousex(::google::protobuf::int32 value) {
00827   _set_bit(1);
00828   mousex_ = value;
00829 }
00830 
00831 // required int32 mouseY = 28;
00832 inline bool FrameMessage::has_mousey() const {
00833   return _has_bit(2);
00834 }
00835 inline void FrameMessage::clear_mousey() {
00836   mousey_ = 0;
00837   _clear_bit(2);
00838 }
00839 inline ::google::protobuf::int32 FrameMessage::mousey() const {
00840   return mousey_;
00841 }
00842 inline void FrameMessage::set_mousey(::google::protobuf::int32 value) {
00843   _set_bit(2);
00844   mousey_ = value;
00845 }
00846 
00847 // required int32 screenX = 4;
00848 inline bool FrameMessage::has_screenx() const {
00849   return _has_bit(3);
00850 }
00851 inline void FrameMessage::clear_screenx() {
00852   screenx_ = 0;
00853   _clear_bit(3);
00854 }
00855 inline ::google::protobuf::int32 FrameMessage::screenx() const {
00856   return screenx_;
00857 }
00858 inline void FrameMessage::set_screenx(::google::protobuf::int32 value) {
00859   _set_bit(3);
00860   screenx_ = value;
00861 }
00862 
00863 // required int32 screenY = 5;
00864 inline bool FrameMessage::has_screeny() const {
00865   return _has_bit(4);
00866 }
00867 inline void FrameMessage::clear_screeny() {
00868   screeny_ = 0;
00869   _clear_bit(4);
00870 }
00871 inline ::google::protobuf::int32 FrameMessage::screeny() const {
00872   return screeny_;
00873 }
00874 inline void FrameMessage::set_screeny(::google::protobuf::int32 value) {
00875   _set_bit(4);
00876   screeny_ = value;
00877 }
00878 
00879 // repeated .messages.Unit units = 6;
00880 inline int FrameMessage::units_size() const {
00881   return units_.size();
00882 }
00883 inline void FrameMessage::clear_units() {
00884   units_.Clear();
00885 }
00886 inline const ::messages::Unit& FrameMessage::units(int index) const {
00887   return units_.Get(index);
00888 }
00889 inline ::messages::Unit* FrameMessage::mutable_units(int index) {
00890   return units_.Mutable(index);
00891 }
00892 inline ::messages::Unit* FrameMessage::add_units() {
00893   return units_.Add();
00894 }
00895 inline const ::google::protobuf::RepeatedPtrField< ::messages::Unit >&
00896 FrameMessage::units() const {
00897   return units_;
00898 }
00899 inline ::google::protobuf::RepeatedPtrField< ::messages::Unit >*
00900 FrameMessage::mutable_units() {
00901   return &units_;
00902 }
00903 
00904 // repeated .messages.Bullet bullets = 3;
00905 inline int FrameMessage::bullets_size() const {
00906   return bullets_.size();
00907 }
00908 inline void FrameMessage::clear_bullets() {
00909   bullets_.Clear();
00910 }
00911 inline const ::messages::Bullet& FrameMessage::bullets(int index) const {
00912   return bullets_.Get(index);
00913 }
00914 inline ::messages::Bullet* FrameMessage::mutable_bullets(int index) {
00915   return bullets_.Mutable(index);
00916 }
00917 inline ::messages::Bullet* FrameMessage::add_bullets() {
00918   return bullets_.Add();
00919 }
00920 inline const ::google::protobuf::RepeatedPtrField< ::messages::Bullet >&
00921 FrameMessage::bullets() const {
00922   return bullets_;
00923 }
00924 inline ::google::protobuf::RepeatedPtrField< ::messages::Bullet >*
00925 FrameMessage::mutable_bullets() {
00926   return &bullets_;
00927 }
00928 
00929 // repeated .messages.Player players = 20;
00930 inline int FrameMessage::players_size() const {
00931   return players_.size();
00932 }
00933 inline void FrameMessage::clear_players() {
00934   players_.Clear();
00935 }
00936 inline const ::messages::Player& FrameMessage::players(int index) const {
00937   return players_.Get(index);
00938 }
00939 inline ::messages::Player* FrameMessage::mutable_players(int index) {
00940   return players_.Mutable(index);
00941 }
00942 inline ::messages::Player* FrameMessage::add_players() {
00943   return players_.Add();
00944 }
00945 inline const ::google::protobuf::RepeatedPtrField< ::messages::Player >&
00946 FrameMessage::players() const {
00947   return players_;
00948 }
00949 inline ::google::protobuf::RepeatedPtrField< ::messages::Player >*
00950 FrameMessage::mutable_players() {
00951   return &players_;
00952 }
00953 
00954 // repeated .messages.UnitId createdUnits = 7;
00955 inline int FrameMessage::createdunits_size() const {
00956   return createdunits_.size();
00957 }
00958 inline void FrameMessage::clear_createdunits() {
00959   createdunits_.Clear();
00960 }
00961 inline const ::messages::UnitId& FrameMessage::createdunits(int index) const {
00962   return createdunits_.Get(index);
00963 }
00964 inline ::messages::UnitId* FrameMessage::mutable_createdunits(int index) {
00965   return createdunits_.Mutable(index);
00966 }
00967 inline ::messages::UnitId* FrameMessage::add_createdunits() {
00968   return createdunits_.Add();
00969 }
00970 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00971 FrameMessage::createdunits() const {
00972   return createdunits_;
00973 }
00974 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
00975 FrameMessage::mutable_createdunits() {
00976   return &createdunits_;
00977 }
00978 
00979 // repeated .messages.UnitId destroyedUnits = 8;
00980 inline int FrameMessage::destroyedunits_size() const {
00981   return destroyedunits_.size();
00982 }
00983 inline void FrameMessage::clear_destroyedunits() {
00984   destroyedunits_.Clear();
00985 }
00986 inline const ::messages::UnitId& FrameMessage::destroyedunits(int index) const {
00987   return destroyedunits_.Get(index);
00988 }
00989 inline ::messages::UnitId* FrameMessage::mutable_destroyedunits(int index) {
00990   return destroyedunits_.Mutable(index);
00991 }
00992 inline ::messages::UnitId* FrameMessage::add_destroyedunits() {
00993   return destroyedunits_.Add();
00994 }
00995 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
00996 FrameMessage::destroyedunits() const {
00997   return destroyedunits_;
00998 }
00999 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01000 FrameMessage::mutable_destroyedunits() {
01001   return &destroyedunits_;
01002 }
01003 
01004 // repeated .messages.UnitId morphedUnits = 9;
01005 inline int FrameMessage::morphedunits_size() const {
01006   return morphedunits_.size();
01007 }
01008 inline void FrameMessage::clear_morphedunits() {
01009   morphedunits_.Clear();
01010 }
01011 inline const ::messages::UnitId& FrameMessage::morphedunits(int index) const {
01012   return morphedunits_.Get(index);
01013 }
01014 inline ::messages::UnitId* FrameMessage::mutable_morphedunits(int index) {
01015   return morphedunits_.Mutable(index);
01016 }
01017 inline ::messages::UnitId* FrameMessage::add_morphedunits() {
01018   return morphedunits_.Add();
01019 }
01020 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
01021 FrameMessage::morphedunits() const {
01022   return morphedunits_;
01023 }
01024 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01025 FrameMessage::mutable_morphedunits() {
01026   return &morphedunits_;
01027 }
01028 
01029 // repeated .messages.UnitId shownUnits = 10;
01030 inline int FrameMessage::shownunits_size() const {
01031   return shownunits_.size();
01032 }
01033 inline void FrameMessage::clear_shownunits() {
01034   shownunits_.Clear();
01035 }
01036 inline const ::messages::UnitId& FrameMessage::shownunits(int index) const {
01037   return shownunits_.Get(index);
01038 }
01039 inline ::messages::UnitId* FrameMessage::mutable_shownunits(int index) {
01040   return shownunits_.Mutable(index);
01041 }
01042 inline ::messages::UnitId* FrameMessage::add_shownunits() {
01043   return shownunits_.Add();
01044 }
01045 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
01046 FrameMessage::shownunits() const {
01047   return shownunits_;
01048 }
01049 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01050 FrameMessage::mutable_shownunits() {
01051   return &shownunits_;
01052 }
01053 
01054 // repeated .messages.UnitId hiddenUnits = 11;
01055 inline int FrameMessage::hiddenunits_size() const {
01056   return hiddenunits_.size();
01057 }
01058 inline void FrameMessage::clear_hiddenunits() {
01059   hiddenunits_.Clear();
01060 }
01061 inline const ::messages::UnitId& FrameMessage::hiddenunits(int index) const {
01062   return hiddenunits_.Get(index);
01063 }
01064 inline ::messages::UnitId* FrameMessage::mutable_hiddenunits(int index) {
01065   return hiddenunits_.Mutable(index);
01066 }
01067 inline ::messages::UnitId* FrameMessage::add_hiddenunits() {
01068   return hiddenunits_.Add();
01069 }
01070 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
01071 FrameMessage::hiddenunits() const {
01072   return hiddenunits_;
01073 }
01074 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01075 FrameMessage::mutable_hiddenunits() {
01076   return &hiddenunits_;
01077 }
01078 
01079 // repeated .messages.UnitId renegadedUnits = 12;
01080 inline int FrameMessage::renegadedunits_size() const {
01081   return renegadedunits_.size();
01082 }
01083 inline void FrameMessage::clear_renegadedunits() {
01084   renegadedunits_.Clear();
01085 }
01086 inline const ::messages::UnitId& FrameMessage::renegadedunits(int index) const {
01087   return renegadedunits_.Get(index);
01088 }
01089 inline ::messages::UnitId* FrameMessage::mutable_renegadedunits(int index) {
01090   return renegadedunits_.Mutable(index);
01091 }
01092 inline ::messages::UnitId* FrameMessage::add_renegadedunits() {
01093   return renegadedunits_.Add();
01094 }
01095 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
01096 FrameMessage::renegadedunits() const {
01097   return renegadedunits_;
01098 }
01099 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01100 FrameMessage::mutable_renegadedunits() {
01101   return &renegadedunits_;
01102 }
01103 
01104 // repeated int32 leftplayers = 21;
01105 inline int FrameMessage::leftplayers_size() const {
01106   return leftplayers_.size();
01107 }
01108 inline void FrameMessage::clear_leftplayers() {
01109   leftplayers_.Clear();
01110 }
01111 inline ::google::protobuf::int32 FrameMessage::leftplayers(int index) const {
01112   return leftplayers_.Get(index);
01113 }
01114 inline void FrameMessage::set_leftplayers(int index, ::google::protobuf::int32 value) {
01115   leftplayers_.Set(index, value);
01116 }
01117 inline void FrameMessage::add_leftplayers(::google::protobuf::int32 value) {
01118   leftplayers_.Add(value);
01119 }
01120 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
01121 FrameMessage::leftplayers() const {
01122   return leftplayers_;
01123 }
01124 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
01125 FrameMessage::mutable_leftplayers() {
01126   return &leftplayers_;
01127 }
01128 
01129 // repeated .messages.PlayerText receivedTexts = 22;
01130 inline int FrameMessage::receivedtexts_size() const {
01131   return receivedtexts_.size();
01132 }
01133 inline void FrameMessage::clear_receivedtexts() {
01134   receivedtexts_.Clear();
01135 }
01136 inline const ::messages::PlayerText& FrameMessage::receivedtexts(int index) const {
01137   return receivedtexts_.Get(index);
01138 }
01139 inline ::messages::PlayerText* FrameMessage::mutable_receivedtexts(int index) {
01140   return receivedtexts_.Mutable(index);
01141 }
01142 inline ::messages::PlayerText* FrameMessage::add_receivedtexts() {
01143   return receivedtexts_.Add();
01144 }
01145 inline const ::google::protobuf::RepeatedPtrField< ::messages::PlayerText >&
01146 FrameMessage::receivedtexts() const {
01147   return receivedtexts_;
01148 }
01149 inline ::google::protobuf::RepeatedPtrField< ::messages::PlayerText >*
01150 FrameMessage::mutable_receivedtexts() {
01151   return &receivedtexts_;
01152 }
01153 
01154 // repeated .messages.UnitId selectedUnits = 24;
01155 inline int FrameMessage::selectedunits_size() const {
01156   return selectedunits_.size();
01157 }
01158 inline void FrameMessage::clear_selectedunits() {
01159   selectedunits_.Clear();
01160 }
01161 inline const ::messages::UnitId& FrameMessage::selectedunits(int index) const {
01162   return selectedunits_.Get(index);
01163 }
01164 inline ::messages::UnitId* FrameMessage::mutable_selectedunits(int index) {
01165   return selectedunits_.Mutable(index);
01166 }
01167 inline ::messages::UnitId* FrameMessage::add_selectedunits() {
01168   return selectedunits_.Add();
01169 }
01170 inline const ::google::protobuf::RepeatedPtrField< ::messages::UnitId >&
01171 FrameMessage::selectedunits() const {
01172   return selectedunits_;
01173 }
01174 inline ::google::protobuf::RepeatedPtrField< ::messages::UnitId >*
01175 FrameMessage::mutable_selectedunits() {
01176   return &selectedunits_;
01177 }
01178 
01179 // repeated string sentText = 13;
01180 inline int FrameMessage::senttext_size() const {
01181   return senttext_.size();
01182 }
01183 inline void FrameMessage::clear_senttext() {
01184   senttext_.Clear();
01185 }
01186 inline const ::std::string& FrameMessage::senttext(int index) const {
01187   return senttext_.Get(index);
01188 }
01189 inline ::std::string* FrameMessage::mutable_senttext(int index) {
01190   return senttext_.Mutable(index);
01191 }
01192 inline void FrameMessage::set_senttext(int index, const ::std::string& value) {
01193   senttext_.Mutable(index)->assign(value);
01194 }
01195 inline void FrameMessage::set_senttext(int index, const char* value) {
01196   senttext_.Mutable(index)->assign(value);
01197 }
01198 inline void FrameMessage::set_senttext(int index, const char* value, size_t size) {
01199   senttext_.Mutable(index)->assign(
01200     reinterpret_cast<const char*>(value), size);
01201 }
01202 inline ::std::string* FrameMessage::add_senttext() {
01203   return senttext_.Add();
01204 }
01205 inline void FrameMessage::add_senttext(const ::std::string& value) {
01206   senttext_.Add()->assign(value);
01207 }
01208 inline void FrameMessage::add_senttext(const char* value) {
01209   senttext_.Add()->assign(value);
01210 }
01211 inline void FrameMessage::add_senttext(const char* value, size_t size) {
01212   senttext_.Add()->assign(reinterpret_cast<const char*>(value), size);
01213 }
01214 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
01215 FrameMessage::senttext() const {
01216   return senttext_;
01217 }
01218 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
01219 FrameMessage::mutable_senttext() {
01220   return &senttext_;
01221 }
01222 
01223 // optional .messages.Position nukeDetect = 14;
01224 inline bool FrameMessage::has_nukedetect() const {
01225   return _has_bit(18);
01226 }
01227 inline void FrameMessage::clear_nukedetect() {
01228   if (nukedetect_ != NULL) nukedetect_->::messages::Position::Clear();
01229   _clear_bit(18);
01230 }
01231 inline const ::messages::Position& FrameMessage::nukedetect() const {
01232   return nukedetect_ != NULL ? *nukedetect_ : *default_instance_->nukedetect_;
01233 }
01234 inline ::messages::Position* FrameMessage::mutable_nukedetect() {
01235   _set_bit(18);
01236   if (nukedetect_ == NULL) nukedetect_ = new ::messages::Position;
01237   return nukedetect_;
01238 }
01239 
01240 // required bool paused = 15;
01241 inline bool FrameMessage::has_paused() const {
01242   return _has_bit(19);
01243 }
01244 inline void FrameMessage::clear_paused() {
01245   paused_ = false;
01246   _clear_bit(19);
01247 }
01248 inline bool FrameMessage::paused() const {
01249   return paused_;
01250 }
01251 inline void FrameMessage::set_paused(bool value) {
01252   _set_bit(19);
01253   paused_ = value;
01254 }
01255 
01256 // required bool replay = 16;
01257 inline bool FrameMessage::has_replay() const {
01258   return _has_bit(20);
01259 }
01260 inline void FrameMessage::clear_replay() {
01261   replay_ = false;
01262   _clear_bit(20);
01263 }
01264 inline bool FrameMessage::replay() const {
01265   return replay_;
01266 }
01267 inline void FrameMessage::set_replay(bool value) {
01268   _set_bit(20);
01269   replay_ = value;
01270 }
01271 
01272 // required bool multiplayer = 17;
01273 inline bool FrameMessage::has_multiplayer() const {
01274   return _has_bit(21);
01275 }
01276 inline void FrameMessage::clear_multiplayer() {
01277   multiplayer_ = false;
01278   _clear_bit(21);
01279 }
01280 inline bool FrameMessage::multiplayer() const {
01281   return multiplayer_;
01282 }
01283 inline void FrameMessage::set_multiplayer(bool value) {
01284   _set_bit(21);
01285   multiplayer_ = value;
01286 }
01287 
01288 // optional bool gameover = 23;
01289 inline bool FrameMessage::has_gameover() const {
01290   return _has_bit(22);
01291 }
01292 inline void FrameMessage::clear_gameover() {
01293   gameover_ = false;
01294   _clear_bit(22);
01295 }
01296 inline bool FrameMessage::gameover() const {
01297   return gameover_;
01298 }
01299 inline void FrameMessage::set_gameover(bool value) {
01300   _set_bit(22);
01301   gameover_ = value;
01302 }
01303 
01304 // optional bool isWinner = 25;
01305 inline bool FrameMessage::has_iswinner() const {
01306   return _has_bit(23);
01307 }
01308 inline void FrameMessage::clear_iswinner() {
01309   iswinner_ = false;
01310   _clear_bit(23);
01311 }
01312 inline bool FrameMessage::iswinner() const {
01313   return iswinner_;
01314 }
01315 inline void FrameMessage::set_iswinner(bool value) {
01316   _set_bit(23);
01317   iswinner_ = value;
01318 }
01319 
01320 // required .messages.Position screenPosition = 26;
01321 inline bool FrameMessage::has_screenposition() const {
01322   return _has_bit(24);
01323 }
01324 inline void FrameMessage::clear_screenposition() {
01325   if (screenposition_ != NULL) screenposition_->::messages::Position::Clear();
01326   _clear_bit(24);
01327 }
01328 inline const ::messages::Position& FrameMessage::screenposition() const {
01329   return screenposition_ != NULL ? *screenposition_ : *default_instance_->screenposition_;
01330 }
01331 inline ::messages::Position* FrameMessage::mutable_screenposition() {
01332   _set_bit(24);
01333   if (screenposition_ == NULL) screenposition_ = new ::messages::Position;
01334   return screenposition_;
01335 }
01336 
01337 // required int32 latency = 29;
01338 inline bool FrameMessage::has_latency() const {
01339   return _has_bit(25);
01340 }
01341 inline void FrameMessage::clear_latency() {
01342   latency_ = 0;
01343   _clear_bit(25);
01344 }
01345 inline ::google::protobuf::int32 FrameMessage::latency() const {
01346   return latency_;
01347 }
01348 inline void FrameMessage::set_latency(::google::protobuf::int32 value) {
01349   _set_bit(25);
01350   latency_ = value;
01351 }
01352 
01353 // required .messages.DynamicTerrainInfo dynamicTerrainInfo = 18;
01354 inline bool FrameMessage::has_dynamicterraininfo() const {
01355   return _has_bit(26);
01356 }
01357 inline void FrameMessage::clear_dynamicterraininfo() {
01358   if (dynamicterraininfo_ != NULL) dynamicterraininfo_->::messages::DynamicTerrainInfo::Clear();
01359   _clear_bit(26);
01360 }
01361 inline const ::messages::DynamicTerrainInfo& FrameMessage::dynamicterraininfo() const {
01362   return dynamicterraininfo_ != NULL ? *dynamicterraininfo_ : *default_instance_->dynamicterraininfo_;
01363 }
01364 inline ::messages::DynamicTerrainInfo* FrameMessage::mutable_dynamicterraininfo() {
01365   _set_bit(26);
01366   if (dynamicterraininfo_ == NULL) dynamicterraininfo_ = new ::messages::DynamicTerrainInfo;
01367   return dynamicterraininfo_;
01368 }
01369 
01370 // optional .messages.StaticTerrainInfo terrainInfo = 19;
01371 inline bool FrameMessage::has_terraininfo() const {
01372   return _has_bit(27);
01373 }
01374 inline void FrameMessage::clear_terraininfo() {
01375   if (terraininfo_ != NULL) terraininfo_->::messages::StaticTerrainInfo::Clear();
01376   _clear_bit(27);
01377 }
01378 inline const ::messages::StaticTerrainInfo& FrameMessage::terraininfo() const {
01379   return terraininfo_ != NULL ? *terraininfo_ : *default_instance_->terraininfo_;
01380 }
01381 inline ::messages::StaticTerrainInfo* FrameMessage::mutable_terraininfo() {
01382   _set_bit(27);
01383   if (terraininfo_ == NULL) terraininfo_ = new ::messages::StaticTerrainInfo;
01384   return terraininfo_;
01385 }
01386 
01387 // -------------------------------------------------------------------
01388 
01389 // FrameCommands
01390 
01391 // repeated .messages.Command commands = 1;
01392 inline int FrameCommands::commands_size() const {
01393   return commands_.size();
01394 }
01395 inline void FrameCommands::clear_commands() {
01396   commands_.Clear();
01397 }
01398 inline const ::messages::Command& FrameCommands::commands(int index) const {
01399   return commands_.Get(index);
01400 }
01401 inline ::messages::Command* FrameCommands::mutable_commands(int index) {
01402   return commands_.Mutable(index);
01403 }
01404 inline ::messages::Command* FrameCommands::add_commands() {
01405   return commands_.Add();
01406 }
01407 inline const ::google::protobuf::RepeatedPtrField< ::messages::Command >&
01408 FrameCommands::commands() const {
01409   return commands_;
01410 }
01411 inline ::google::protobuf::RepeatedPtrField< ::messages::Command >*
01412 FrameCommands::mutable_commands() {
01413   return &commands_;
01414 }
01415 
01416 // optional sint32 gameSpeed = 2;
01417 inline bool FrameCommands::has_gamespeed() const {
01418   return _has_bit(1);
01419 }
01420 inline void FrameCommands::clear_gamespeed() {
01421   gamespeed_ = 0;
01422   _clear_bit(1);
01423 }
01424 inline ::google::protobuf::int32 FrameCommands::gamespeed() const {
01425   return gamespeed_;
01426 }
01427 inline void FrameCommands::set_gamespeed(::google::protobuf::int32 value) {
01428   _set_bit(1);
01429   gamespeed_ = value;
01430 }
01431 
01432 // repeated string sendText = 3;
01433 inline int FrameCommands::sendtext_size() const {
01434   return sendtext_.size();
01435 }
01436 inline void FrameCommands::clear_sendtext() {
01437   sendtext_.Clear();
01438 }
01439 inline const ::std::string& FrameCommands::sendtext(int index) const {
01440   return sendtext_.Get(index);
01441 }
01442 inline ::std::string* FrameCommands::mutable_sendtext(int index) {
01443   return sendtext_.Mutable(index);
01444 }
01445 inline void FrameCommands::set_sendtext(int index, const ::std::string& value) {
01446   sendtext_.Mutable(index)->assign(value);
01447 }
01448 inline void FrameCommands::set_sendtext(int index, const char* value) {
01449   sendtext_.Mutable(index)->assign(value);
01450 }
01451 inline void FrameCommands::set_sendtext(int index, const char* value, size_t size) {
01452   sendtext_.Mutable(index)->assign(
01453     reinterpret_cast<const char*>(value), size);
01454 }
01455 inline ::std::string* FrameCommands::add_sendtext() {
01456   return sendtext_.Add();
01457 }
01458 inline void FrameCommands::add_sendtext(const ::std::string& value) {
01459   sendtext_.Add()->assign(value);
01460 }
01461 inline void FrameCommands::add_sendtext(const char* value) {
01462   sendtext_.Add()->assign(value);
01463 }
01464 inline void FrameCommands::add_sendtext(const char* value, size_t size) {
01465   sendtext_.Add()->assign(reinterpret_cast<const char*>(value), size);
01466 }
01467 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
01468 FrameCommands::sendtext() const {
01469   return sendtext_;
01470 }
01471 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
01472 FrameCommands::mutable_sendtext() {
01473   return &sendtext_;
01474 }
01475 
01476 // repeated string printf = 4;
01477 inline int FrameCommands::printf_size() const {
01478   return printf_.size();
01479 }
01480 inline void FrameCommands::clear_printf() {
01481   printf_.Clear();
01482 }
01483 inline const ::std::string& FrameCommands::printf(int index) const {
01484   return printf_.Get(index);
01485 }
01486 inline ::std::string* FrameCommands::mutable_printf(int index) {
01487   return printf_.Mutable(index);
01488 }
01489 inline void FrameCommands::set_printf(int index, const ::std::string& value) {
01490   printf_.Mutable(index)->assign(value);
01491 }
01492 inline void FrameCommands::set_printf(int index, const char* value) {
01493   printf_.Mutable(index)->assign(value);
01494 }
01495 inline void FrameCommands::set_printf(int index, const char* value, size_t size) {
01496   printf_.Mutable(index)->assign(
01497     reinterpret_cast<const char*>(value), size);
01498 }
01499 inline ::std::string* FrameCommands::add_printf() {
01500   return printf_.Add();
01501 }
01502 inline void FrameCommands::add_printf(const ::std::string& value) {
01503   printf_.Add()->assign(value);
01504 }
01505 inline void FrameCommands::add_printf(const char* value) {
01506   printf_.Add()->assign(value);
01507 }
01508 inline void FrameCommands::add_printf(const char* value, size_t size) {
01509   printf_.Add()->assign(reinterpret_cast<const char*>(value), size);
01510 }
01511 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
01512 FrameCommands::printf() const {
01513   return printf_;
01514 }
01515 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
01516 FrameCommands::mutable_printf() {
01517   return &printf_;
01518 }
01519 
01520 // repeated .messages.Flag flags = 5;
01521 inline int FrameCommands::flags_size() const {
01522   return flags_.size();
01523 }
01524 inline void FrameCommands::clear_flags() {
01525   flags_.Clear();
01526 }
01527 inline messages::Flag FrameCommands::flags(int index) const {
01528   return static_cast< messages::Flag >(flags_.Get(index));
01529 }
01530 inline void FrameCommands::set_flags(int index, messages::Flag value) {
01531   GOOGLE_DCHECK(messages::Flag_IsValid(value));
01532   flags_.Set(index, value);
01533 }
01534 inline void FrameCommands::add_flags(messages::Flag value) {
01535   GOOGLE_DCHECK(messages::Flag_IsValid(value));
01536   flags_.Add(value);
01537 }
01538 inline const ::google::protobuf::RepeatedField<int>&
01539 FrameCommands::flags() const {
01540   return flags_;
01541 }
01542 inline ::google::protobuf::RepeatedField<int>*
01543 FrameCommands::mutable_flags() {
01544   return &flags_;
01545 }
01546 
01547 // repeated .messages.DrawCommand drawCommands = 6;
01548 inline int FrameCommands::drawcommands_size() const {
01549   return drawcommands_.size();
01550 }
01551 inline void FrameCommands::clear_drawcommands() {
01552   drawcommands_.Clear();
01553 }
01554 inline const ::messages::DrawCommand& FrameCommands::drawcommands(int index) const {
01555   return drawcommands_.Get(index);
01556 }
01557 inline ::messages::DrawCommand* FrameCommands::mutable_drawcommands(int index) {
01558   return drawcommands_.Mutable(index);
01559 }
01560 inline ::messages::DrawCommand* FrameCommands::add_drawcommands() {
01561   return drawcommands_.Add();
01562 }
01563 inline const ::google::protobuf::RepeatedPtrField< ::messages::DrawCommand >&
01564 FrameCommands::drawcommands() const {
01565   return drawcommands_;
01566 }
01567 inline ::google::protobuf::RepeatedPtrField< ::messages::DrawCommand >*
01568 FrameCommands::mutable_drawcommands() {
01569   return &drawcommands_;
01570 }
01571 
01572 // optional .messages.Position screenPosition = 7;
01573 inline bool FrameCommands::has_screenposition() const {
01574   return _has_bit(6);
01575 }
01576 inline void FrameCommands::clear_screenposition() {
01577   if (screenposition_ != NULL) screenposition_->::messages::Position::Clear();
01578   _clear_bit(6);
01579 }
01580 inline const ::messages::Position& FrameCommands::screenposition() const {
01581   return screenposition_ != NULL ? *screenposition_ : *default_instance_->screenposition_;
01582 }
01583 inline ::messages::Position* FrameCommands::mutable_screenposition() {
01584   _set_bit(6);
01585   if (screenposition_ == NULL) screenposition_ = new ::messages::Position;
01586   return screenposition_;
01587 }
01588 
01589 // optional string botName = 8;
01590 inline bool FrameCommands::has_botname() const {
01591   return _has_bit(7);
01592 }
01593 inline void FrameCommands::clear_botname() {
01594   if (botname_ != &_default_botname_) {
01595     botname_->clear();
01596   }
01597   _clear_bit(7);
01598 }
01599 inline const ::std::string& FrameCommands::botname() const {
01600   return *botname_;
01601 }
01602 inline void FrameCommands::set_botname(const ::std::string& value) {
01603   _set_bit(7);
01604   if (botname_ == &_default_botname_) {
01605     botname_ = new ::std::string;
01606   }
01607   botname_->assign(value);
01608 }
01609 inline void FrameCommands::set_botname(const char* value) {
01610   _set_bit(7);
01611   if (botname_ == &_default_botname_) {
01612     botname_ = new ::std::string;
01613   }
01614   botname_->assign(value);
01615 }
01616 inline void FrameCommands::set_botname(const char* value, size_t size) {
01617   _set_bit(7);
01618   if (botname_ == &_default_botname_) {
01619     botname_ = new ::std::string;
01620   }
01621   botname_->assign(reinterpret_cast<const char*>(value), size);
01622 }
01623 inline ::std::string* FrameCommands::mutable_botname() {
01624   _set_bit(7);
01625   if (botname_ == &_default_botname_) {
01626     botname_ = new ::std::string;
01627   }
01628   return botname_;
01629 }
01630 
01631 // optional string botCode = 9;
01632 inline bool FrameCommands::has_botcode() const {
01633   return _has_bit(8);
01634 }
01635 inline void FrameCommands::clear_botcode() {
01636   if (botcode_ != &_default_botcode_) {
01637     botcode_->clear();
01638   }
01639   _clear_bit(8);
01640 }
01641 inline const ::std::string& FrameCommands::botcode() const {
01642   return *botcode_;
01643 }
01644 inline void FrameCommands::set_botcode(const ::std::string& value) {
01645   _set_bit(8);
01646   if (botcode_ == &_default_botcode_) {
01647     botcode_ = new ::std::string;
01648   }
01649   botcode_->assign(value);
01650 }
01651 inline void FrameCommands::set_botcode(const char* value) {
01652   _set_bit(8);
01653   if (botcode_ == &_default_botcode_) {
01654     botcode_ = new ::std::string;
01655   }
01656   botcode_->assign(value);
01657 }
01658 inline void FrameCommands::set_botcode(const char* value, size_t size) {
01659   _set_bit(8);
01660   if (botcode_ == &_default_botcode_) {
01661     botcode_ = new ::std::string;
01662   }
01663   botcode_->assign(reinterpret_cast<const char*>(value), size);
01664 }
01665 inline ::std::string* FrameCommands::mutable_botcode() {
01666   _set_bit(8);
01667   if (botcode_ == &_default_botcode_) {
01668     botcode_ = new ::std::string;
01669   }
01670   return botcode_;
01671 }
01672 
01673 
01674 // @@protoc_insertion_point(namespace_scope)
01675 
01676 }  // namespace messages
01677 
01678 #ifndef SWIG
01679 namespace google {
01680 namespace protobuf {
01681 
01682 template <>
01683 inline const EnumDescriptor* GetEnumDescriptor< messages::Flag>() {
01684   return messages::Flag_descriptor();
01685 }
01686 
01687 }  // namespace google
01688 }  // namespace protobuf
01689 #endif  // SWIG
01690 
01691 // @@protoc_insertion_point(global_scope)
01692 
01693 #endif  // PROTOBUF_aimodule_2eproto__INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines