/communication/playerInfo.pb.h

http://acunis-emag.googlecode.com/ · C Header · 762 lines · 582 code · 113 blank · 67 comment · 23 complexity · 7c228e32a561fe3c100e88ce109b9be5 MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: playerInfo.proto
  3. #ifndef PROTOBUF_playerInfo_2eproto__INCLUDED
  4. #define PROTOBUF_playerInfo_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2003000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. // Internal implementation detail -- do not call these.
  23. void protobuf_AddDesc_playerInfo_2eproto();
  24. void protobuf_AssignDesc_playerInfo_2eproto();
  25. void protobuf_ShutdownFile_playerInfo_2eproto();
  26. class PlayerInfo;
  27. class PlayerInfo_Vec3D;
  28. class PlayerInfo_Ball;
  29. // ===================================================================
  30. class PlayerInfo_Vec3D : public ::google::protobuf::Message {
  31. public:
  32. PlayerInfo_Vec3D();
  33. virtual ~PlayerInfo_Vec3D();
  34. PlayerInfo_Vec3D(const PlayerInfo_Vec3D& from);
  35. inline PlayerInfo_Vec3D& operator=(const PlayerInfo_Vec3D& from) {
  36. CopyFrom(from);
  37. return *this;
  38. }
  39. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  40. return _unknown_fields_;
  41. }
  42. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  43. return &_unknown_fields_;
  44. }
  45. static const ::google::protobuf::Descriptor* descriptor();
  46. static const PlayerInfo_Vec3D& default_instance();
  47. void Swap(PlayerInfo_Vec3D* other);
  48. // implements Message ----------------------------------------------
  49. PlayerInfo_Vec3D* New() const;
  50. void CopyFrom(const ::google::protobuf::Message& from);
  51. void MergeFrom(const ::google::protobuf::Message& from);
  52. void CopyFrom(const PlayerInfo_Vec3D& from);
  53. void MergeFrom(const PlayerInfo_Vec3D& from);
  54. void Clear();
  55. bool IsInitialized() const;
  56. int ByteSize() const;
  57. bool MergePartialFromCodedStream(
  58. ::google::protobuf::io::CodedInputStream* input);
  59. void SerializeWithCachedSizes(
  60. ::google::protobuf::io::CodedOutputStream* output) const;
  61. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  62. int GetCachedSize() const { return _cached_size_; }
  63. private:
  64. void SharedCtor();
  65. void SharedDtor();
  66. void SetCachedSize(int size) const;
  67. public:
  68. ::google::protobuf::Metadata GetMetadata() const;
  69. // nested types ----------------------------------------------------
  70. // accessors -------------------------------------------------------
  71. // required double x = 1;
  72. inline bool has_x() const;
  73. inline void clear_x();
  74. static const int kXFieldNumber = 1;
  75. inline double x() const;
  76. inline void set_x(double value);
  77. // required double y = 2;
  78. inline bool has_y() const;
  79. inline void clear_y();
  80. static const int kYFieldNumber = 2;
  81. inline double y() const;
  82. inline void set_y(double value);
  83. // required double z = 3;
  84. inline bool has_z() const;
  85. inline void clear_z();
  86. static const int kZFieldNumber = 3;
  87. inline double z() const;
  88. inline void set_z(double value);
  89. // @@protoc_insertion_point(class_scope:PlayerInfo.Vec3D)
  90. private:
  91. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  92. mutable int _cached_size_;
  93. double x_;
  94. double y_;
  95. double z_;
  96. friend void protobuf_AddDesc_playerInfo_2eproto();
  97. friend void protobuf_AssignDesc_playerInfo_2eproto();
  98. friend void protobuf_ShutdownFile_playerInfo_2eproto();
  99. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  100. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  101. inline bool _has_bit(int index) const {
  102. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  103. }
  104. inline void _set_bit(int index) {
  105. _has_bits_[index / 32] |= (1u << (index % 32));
  106. }
  107. inline void _clear_bit(int index) {
  108. _has_bits_[index / 32] &= ~(1u << (index % 32));
  109. }
  110. void InitAsDefaultInstance();
  111. static PlayerInfo_Vec3D* default_instance_;
  112. };
  113. // -------------------------------------------------------------------
  114. class PlayerInfo_Ball : public ::google::protobuf::Message {
  115. public:
  116. PlayerInfo_Ball();
  117. virtual ~PlayerInfo_Ball();
  118. PlayerInfo_Ball(const PlayerInfo_Ball& from);
  119. inline PlayerInfo_Ball& operator=(const PlayerInfo_Ball& from) {
  120. CopyFrom(from);
  121. return *this;
  122. }
  123. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  124. return _unknown_fields_;
  125. }
  126. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  127. return &_unknown_fields_;
  128. }
  129. static const ::google::protobuf::Descriptor* descriptor();
  130. static const PlayerInfo_Ball& default_instance();
  131. void Swap(PlayerInfo_Ball* other);
  132. // implements Message ----------------------------------------------
  133. PlayerInfo_Ball* New() const;
  134. void CopyFrom(const ::google::protobuf::Message& from);
  135. void MergeFrom(const ::google::protobuf::Message& from);
  136. void CopyFrom(const PlayerInfo_Ball& from);
  137. void MergeFrom(const PlayerInfo_Ball& from);
  138. void Clear();
  139. bool IsInitialized() const;
  140. int ByteSize() const;
  141. bool MergePartialFromCodedStream(
  142. ::google::protobuf::io::CodedInputStream* input);
  143. void SerializeWithCachedSizes(
  144. ::google::protobuf::io::CodedOutputStream* output) const;
  145. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  146. int GetCachedSize() const { return _cached_size_; }
  147. private:
  148. void SharedCtor();
  149. void SharedDtor();
  150. void SetCachedSize(int size) const;
  151. public:
  152. ::google::protobuf::Metadata GetMetadata() const;
  153. // nested types ----------------------------------------------------
  154. // accessors -------------------------------------------------------
  155. // required double x = 1;
  156. inline bool has_x() const;
  157. inline void clear_x();
  158. static const int kXFieldNumber = 1;
  159. inline double x() const;
  160. inline void set_x(double value);
  161. // required double z = 2;
  162. inline bool has_z() const;
  163. inline void clear_z();
  164. static const int kZFieldNumber = 2;
  165. inline double z() const;
  166. inline void set_z(double value);
  167. // required bool inGame = 3;
  168. inline bool has_ingame() const;
  169. inline void clear_ingame();
  170. static const int kInGameFieldNumber = 3;
  171. inline bool ingame() const;
  172. inline void set_ingame(bool value);
  173. // @@protoc_insertion_point(class_scope:PlayerInfo.Ball)
  174. private:
  175. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  176. mutable int _cached_size_;
  177. double x_;
  178. double z_;
  179. bool ingame_;
  180. friend void protobuf_AddDesc_playerInfo_2eproto();
  181. friend void protobuf_AssignDesc_playerInfo_2eproto();
  182. friend void protobuf_ShutdownFile_playerInfo_2eproto();
  183. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  184. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  185. inline bool _has_bit(int index) const {
  186. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  187. }
  188. inline void _set_bit(int index) {
  189. _has_bits_[index / 32] |= (1u << (index % 32));
  190. }
  191. inline void _clear_bit(int index) {
  192. _has_bits_[index / 32] &= ~(1u << (index % 32));
  193. }
  194. void InitAsDefaultInstance();
  195. static PlayerInfo_Ball* default_instance_;
  196. };
  197. // -------------------------------------------------------------------
  198. class PlayerInfo : public ::google::protobuf::Message {
  199. public:
  200. PlayerInfo();
  201. virtual ~PlayerInfo();
  202. PlayerInfo(const PlayerInfo& from);
  203. inline PlayerInfo& operator=(const PlayerInfo& from) {
  204. CopyFrom(from);
  205. return *this;
  206. }
  207. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  208. return _unknown_fields_;
  209. }
  210. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  211. return &_unknown_fields_;
  212. }
  213. static const ::google::protobuf::Descriptor* descriptor();
  214. static const PlayerInfo& default_instance();
  215. void Swap(PlayerInfo* other);
  216. // implements Message ----------------------------------------------
  217. PlayerInfo* New() const;
  218. void CopyFrom(const ::google::protobuf::Message& from);
  219. void MergeFrom(const ::google::protobuf::Message& from);
  220. void CopyFrom(const PlayerInfo& from);
  221. void MergeFrom(const PlayerInfo& from);
  222. void Clear();
  223. bool IsInitialized() const;
  224. int ByteSize() const;
  225. bool MergePartialFromCodedStream(
  226. ::google::protobuf::io::CodedInputStream* input);
  227. void SerializeWithCachedSizes(
  228. ::google::protobuf::io::CodedOutputStream* output) const;
  229. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  230. int GetCachedSize() const { return _cached_size_; }
  231. private:
  232. void SharedCtor();
  233. void SharedDtor();
  234. void SetCachedSize(int size) const;
  235. public:
  236. ::google::protobuf::Metadata GetMetadata() const;
  237. // nested types ----------------------------------------------------
  238. typedef PlayerInfo_Vec3D Vec3D;
  239. typedef PlayerInfo_Ball Ball;
  240. // accessors -------------------------------------------------------
  241. // required int32 id = 1;
  242. inline bool has_id() const;
  243. inline void clear_id();
  244. static const int kIdFieldNumber = 1;
  245. inline ::google::protobuf::int32 id() const;
  246. inline void set_id(::google::protobuf::int32 value);
  247. // required .PlayerInfo.Vec3D cueVec = 2;
  248. inline bool has_cuevec() const;
  249. inline void clear_cuevec();
  250. static const int kCueVecFieldNumber = 2;
  251. inline const ::PlayerInfo_Vec3D& cuevec() const;
  252. inline ::PlayerInfo_Vec3D* mutable_cuevec();
  253. // required .PlayerInfo.Vec3D camPos = 3;
  254. inline bool has_campos() const;
  255. inline void clear_campos();
  256. static const int kCamPosFieldNumber = 3;
  257. inline const ::PlayerInfo_Vec3D& campos() const;
  258. inline ::PlayerInfo_Vec3D* mutable_campos();
  259. // required .PlayerInfo.Vec3D camLookAt = 4;
  260. inline bool has_camlookat() const;
  261. inline void clear_camlookat();
  262. static const int kCamLookAtFieldNumber = 4;
  263. inline const ::PlayerInfo_Vec3D& camlookat() const;
  264. inline ::PlayerInfo_Vec3D* mutable_camlookat();
  265. // required bool isShooting = 5;
  266. inline bool has_isshooting() const;
  267. inline void clear_isshooting();
  268. static const int kIsShootingFieldNumber = 5;
  269. inline bool isshooting() const;
  270. inline void set_isshooting(bool value);
  271. // required int32 turn = 6;
  272. inline bool has_turn() const;
  273. inline void clear_turn();
  274. static const int kTurnFieldNumber = 6;
  275. inline ::google::protobuf::int32 turn() const;
  276. inline void set_turn(::google::protobuf::int32 value);
  277. // required int32 p1score = 7;
  278. inline bool has_p1score() const;
  279. inline void clear_p1score();
  280. static const int kP1ScoreFieldNumber = 7;
  281. inline ::google::protobuf::int32 p1score() const;
  282. inline void set_p1score(::google::protobuf::int32 value);
  283. // required int32 p2score = 8;
  284. inline bool has_p2score() const;
  285. inline void clear_p2score();
  286. static const int kP2ScoreFieldNumber = 8;
  287. inline ::google::protobuf::int32 p2score() const;
  288. inline void set_p2score(::google::protobuf::int32 value);
  289. // repeated .PlayerInfo.Ball ball = 9;
  290. inline int ball_size() const;
  291. inline void clear_ball();
  292. static const int kBallFieldNumber = 9;
  293. inline const ::PlayerInfo_Ball& ball(int index) const;
  294. inline ::PlayerInfo_Ball* mutable_ball(int index);
  295. inline ::PlayerInfo_Ball* add_ball();
  296. inline const ::google::protobuf::RepeatedPtrField< ::PlayerInfo_Ball >&
  297. ball() const;
  298. inline ::google::protobuf::RepeatedPtrField< ::PlayerInfo_Ball >*
  299. mutable_ball();
  300. // required int32 p1target = 10;
  301. inline bool has_p1target() const;
  302. inline void clear_p1target();
  303. static const int kP1TargetFieldNumber = 10;
  304. inline ::google::protobuf::int32 p1target() const;
  305. inline void set_p1target(::google::protobuf::int32 value);
  306. // required int32 p2target = 11;
  307. inline bool has_p2target() const;
  308. inline void clear_p2target();
  309. static const int kP2TargetFieldNumber = 11;
  310. inline ::google::protobuf::int32 p2target() const;
  311. inline void set_p2target(::google::protobuf::int32 value);
  312. // required .PlayerInfo.Vec3D cuePos = 12;
  313. inline bool has_cuepos() const;
  314. inline void clear_cuepos();
  315. static const int kCuePosFieldNumber = 12;
  316. inline const ::PlayerInfo_Vec3D& cuepos() const;
  317. inline ::PlayerInfo_Vec3D* mutable_cuepos();
  318. // @@protoc_insertion_point(class_scope:PlayerInfo)
  319. private:
  320. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  321. mutable int _cached_size_;
  322. ::google::protobuf::int32 id_;
  323. ::PlayerInfo_Vec3D* cuevec_;
  324. ::PlayerInfo_Vec3D* campos_;
  325. ::PlayerInfo_Vec3D* camlookat_;
  326. bool isshooting_;
  327. ::google::protobuf::int32 turn_;
  328. ::google::protobuf::int32 p1score_;
  329. ::google::protobuf::int32 p2score_;
  330. ::google::protobuf::RepeatedPtrField< ::PlayerInfo_Ball > ball_;
  331. ::google::protobuf::int32 p1target_;
  332. ::google::protobuf::int32 p2target_;
  333. ::PlayerInfo_Vec3D* cuepos_;
  334. friend void protobuf_AddDesc_playerInfo_2eproto();
  335. friend void protobuf_AssignDesc_playerInfo_2eproto();
  336. friend void protobuf_ShutdownFile_playerInfo_2eproto();
  337. ::google::protobuf::uint32 _has_bits_[(12 + 31) / 32];
  338. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  339. inline bool _has_bit(int index) const {
  340. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  341. }
  342. inline void _set_bit(int index) {
  343. _has_bits_[index / 32] |= (1u << (index % 32));
  344. }
  345. inline void _clear_bit(int index) {
  346. _has_bits_[index / 32] &= ~(1u << (index % 32));
  347. }
  348. void InitAsDefaultInstance();
  349. static PlayerInfo* default_instance_;
  350. };
  351. // ===================================================================
  352. // ===================================================================
  353. // PlayerInfo_Vec3D
  354. // required double x = 1;
  355. inline bool PlayerInfo_Vec3D::has_x() const {
  356. return _has_bit(0);
  357. }
  358. inline void PlayerInfo_Vec3D::clear_x() {
  359. x_ = 0;
  360. _clear_bit(0);
  361. }
  362. inline double PlayerInfo_Vec3D::x() const {
  363. return x_;
  364. }
  365. inline void PlayerInfo_Vec3D::set_x(double value) {
  366. _set_bit(0);
  367. x_ = value;
  368. }
  369. // required double y = 2;
  370. inline bool PlayerInfo_Vec3D::has_y() const {
  371. return _has_bit(1);
  372. }
  373. inline void PlayerInfo_Vec3D::clear_y() {
  374. y_ = 0;
  375. _clear_bit(1);
  376. }
  377. inline double PlayerInfo_Vec3D::y() const {
  378. return y_;
  379. }
  380. inline void PlayerInfo_Vec3D::set_y(double value) {
  381. _set_bit(1);
  382. y_ = value;
  383. }
  384. // required double z = 3;
  385. inline bool PlayerInfo_Vec3D::has_z() const {
  386. return _has_bit(2);
  387. }
  388. inline void PlayerInfo_Vec3D::clear_z() {
  389. z_ = 0;
  390. _clear_bit(2);
  391. }
  392. inline double PlayerInfo_Vec3D::z() const {
  393. return z_;
  394. }
  395. inline void PlayerInfo_Vec3D::set_z(double value) {
  396. _set_bit(2);
  397. z_ = value;
  398. }
  399. // -------------------------------------------------------------------
  400. // PlayerInfo_Ball
  401. // required double x = 1;
  402. inline bool PlayerInfo_Ball::has_x() const {
  403. return _has_bit(0);
  404. }
  405. inline void PlayerInfo_Ball::clear_x() {
  406. x_ = 0;
  407. _clear_bit(0);
  408. }
  409. inline double PlayerInfo_Ball::x() const {
  410. return x_;
  411. }
  412. inline void PlayerInfo_Ball::set_x(double value) {
  413. _set_bit(0);
  414. x_ = value;
  415. }
  416. // required double z = 2;
  417. inline bool PlayerInfo_Ball::has_z() const {
  418. return _has_bit(1);
  419. }
  420. inline void PlayerInfo_Ball::clear_z() {
  421. z_ = 0;
  422. _clear_bit(1);
  423. }
  424. inline double PlayerInfo_Ball::z() const {
  425. return z_;
  426. }
  427. inline void PlayerInfo_Ball::set_z(double value) {
  428. _set_bit(1);
  429. z_ = value;
  430. }
  431. // required bool inGame = 3;
  432. inline bool PlayerInfo_Ball::has_ingame() const {
  433. return _has_bit(2);
  434. }
  435. inline void PlayerInfo_Ball::clear_ingame() {
  436. ingame_ = false;
  437. _clear_bit(2);
  438. }
  439. inline bool PlayerInfo_Ball::ingame() const {
  440. return ingame_;
  441. }
  442. inline void PlayerInfo_Ball::set_ingame(bool value) {
  443. _set_bit(2);
  444. ingame_ = value;
  445. }
  446. // -------------------------------------------------------------------
  447. // PlayerInfo
  448. // required int32 id = 1;
  449. inline bool PlayerInfo::has_id() const {
  450. return _has_bit(0);
  451. }
  452. inline void PlayerInfo::clear_id() {
  453. id_ = 0;
  454. _clear_bit(0);
  455. }
  456. inline ::google::protobuf::int32 PlayerInfo::id() const {
  457. return id_;
  458. }
  459. inline void PlayerInfo::set_id(::google::protobuf::int32 value) {
  460. _set_bit(0);
  461. id_ = value;
  462. }
  463. // required .PlayerInfo.Vec3D cueVec = 2;
  464. inline bool PlayerInfo::has_cuevec() const {
  465. return _has_bit(1);
  466. }
  467. inline void PlayerInfo::clear_cuevec() {
  468. if (cuevec_ != NULL) cuevec_->::PlayerInfo_Vec3D::Clear();
  469. _clear_bit(1);
  470. }
  471. inline const ::PlayerInfo_Vec3D& PlayerInfo::cuevec() const {
  472. return cuevec_ != NULL ? *cuevec_ : *default_instance_->cuevec_;
  473. }
  474. inline ::PlayerInfo_Vec3D* PlayerInfo::mutable_cuevec() {
  475. _set_bit(1);
  476. if (cuevec_ == NULL) cuevec_ = new ::PlayerInfo_Vec3D;
  477. return cuevec_;
  478. }
  479. // required .PlayerInfo.Vec3D camPos = 3;
  480. inline bool PlayerInfo::has_campos() const {
  481. return _has_bit(2);
  482. }
  483. inline void PlayerInfo::clear_campos() {
  484. if (campos_ != NULL) campos_->::PlayerInfo_Vec3D::Clear();
  485. _clear_bit(2);
  486. }
  487. inline const ::PlayerInfo_Vec3D& PlayerInfo::campos() const {
  488. return campos_ != NULL ? *campos_ : *default_instance_->campos_;
  489. }
  490. inline ::PlayerInfo_Vec3D* PlayerInfo::mutable_campos() {
  491. _set_bit(2);
  492. if (campos_ == NULL) campos_ = new ::PlayerInfo_Vec3D;
  493. return campos_;
  494. }
  495. // required .PlayerInfo.Vec3D camLookAt = 4;
  496. inline bool PlayerInfo::has_camlookat() const {
  497. return _has_bit(3);
  498. }
  499. inline void PlayerInfo::clear_camlookat() {
  500. if (camlookat_ != NULL) camlookat_->::PlayerInfo_Vec3D::Clear();
  501. _clear_bit(3);
  502. }
  503. inline const ::PlayerInfo_Vec3D& PlayerInfo::camlookat() const {
  504. return camlookat_ != NULL ? *camlookat_ : *default_instance_->camlookat_;
  505. }
  506. inline ::PlayerInfo_Vec3D* PlayerInfo::mutable_camlookat() {
  507. _set_bit(3);
  508. if (camlookat_ == NULL) camlookat_ = new ::PlayerInfo_Vec3D;
  509. return camlookat_;
  510. }
  511. // required bool isShooting = 5;
  512. inline bool PlayerInfo::has_isshooting() const {
  513. return _has_bit(4);
  514. }
  515. inline void PlayerInfo::clear_isshooting() {
  516. isshooting_ = false;
  517. _clear_bit(4);
  518. }
  519. inline bool PlayerInfo::isshooting() const {
  520. return isshooting_;
  521. }
  522. inline void PlayerInfo::set_isshooting(bool value) {
  523. _set_bit(4);
  524. isshooting_ = value;
  525. }
  526. // required int32 turn = 6;
  527. inline bool PlayerInfo::has_turn() const {
  528. return _has_bit(5);
  529. }
  530. inline void PlayerInfo::clear_turn() {
  531. turn_ = 0;
  532. _clear_bit(5);
  533. }
  534. inline ::google::protobuf::int32 PlayerInfo::turn() const {
  535. return turn_;
  536. }
  537. inline void PlayerInfo::set_turn(::google::protobuf::int32 value) {
  538. _set_bit(5);
  539. turn_ = value;
  540. }
  541. // required int32 p1score = 7;
  542. inline bool PlayerInfo::has_p1score() const {
  543. return _has_bit(6);
  544. }
  545. inline void PlayerInfo::clear_p1score() {
  546. p1score_ = 0;
  547. _clear_bit(6);
  548. }
  549. inline ::google::protobuf::int32 PlayerInfo::p1score() const {
  550. return p1score_;
  551. }
  552. inline void PlayerInfo::set_p1score(::google::protobuf::int32 value) {
  553. _set_bit(6);
  554. p1score_ = value;
  555. }
  556. // required int32 p2score = 8;
  557. inline bool PlayerInfo::has_p2score() const {
  558. return _has_bit(7);
  559. }
  560. inline void PlayerInfo::clear_p2score() {
  561. p2score_ = 0;
  562. _clear_bit(7);
  563. }
  564. inline ::google::protobuf::int32 PlayerInfo::p2score() const {
  565. return p2score_;
  566. }
  567. inline void PlayerInfo::set_p2score(::google::protobuf::int32 value) {
  568. _set_bit(7);
  569. p2score_ = value;
  570. }
  571. // repeated .PlayerInfo.Ball ball = 9;
  572. inline int PlayerInfo::ball_size() const {
  573. return ball_.size();
  574. }
  575. inline void PlayerInfo::clear_ball() {
  576. ball_.Clear();
  577. }
  578. inline const ::PlayerInfo_Ball& PlayerInfo::ball(int index) const {
  579. return ball_.Get(index);
  580. }
  581. inline ::PlayerInfo_Ball* PlayerInfo::mutable_ball(int index) {
  582. return ball_.Mutable(index);
  583. }
  584. inline ::PlayerInfo_Ball* PlayerInfo::add_ball() {
  585. return ball_.Add();
  586. }
  587. inline const ::google::protobuf::RepeatedPtrField< ::PlayerInfo_Ball >&
  588. PlayerInfo::ball() const {
  589. return ball_;
  590. }
  591. inline ::google::protobuf::RepeatedPtrField< ::PlayerInfo_Ball >*
  592. PlayerInfo::mutable_ball() {
  593. return &ball_;
  594. }
  595. // required int32 p1target = 10;
  596. inline bool PlayerInfo::has_p1target() const {
  597. return _has_bit(9);
  598. }
  599. inline void PlayerInfo::clear_p1target() {
  600. p1target_ = 0;
  601. _clear_bit(9);
  602. }
  603. inline ::google::protobuf::int32 PlayerInfo::p1target() const {
  604. return p1target_;
  605. }
  606. inline void PlayerInfo::set_p1target(::google::protobuf::int32 value) {
  607. _set_bit(9);
  608. p1target_ = value;
  609. }
  610. // required int32 p2target = 11;
  611. inline bool PlayerInfo::has_p2target() const {
  612. return _has_bit(10);
  613. }
  614. inline void PlayerInfo::clear_p2target() {
  615. p2target_ = 0;
  616. _clear_bit(10);
  617. }
  618. inline ::google::protobuf::int32 PlayerInfo::p2target() const {
  619. return p2target_;
  620. }
  621. inline void PlayerInfo::set_p2target(::google::protobuf::int32 value) {
  622. _set_bit(10);
  623. p2target_ = value;
  624. }
  625. // required .PlayerInfo.Vec3D cuePos = 12;
  626. inline bool PlayerInfo::has_cuepos() const {
  627. return _has_bit(11);
  628. }
  629. inline void PlayerInfo::clear_cuepos() {
  630. if (cuepos_ != NULL) cuepos_->::PlayerInfo_Vec3D::Clear();
  631. _clear_bit(11);
  632. }
  633. inline const ::PlayerInfo_Vec3D& PlayerInfo::cuepos() const {
  634. return cuepos_ != NULL ? *cuepos_ : *default_instance_->cuepos_;
  635. }
  636. inline ::PlayerInfo_Vec3D* PlayerInfo::mutable_cuepos() {
  637. _set_bit(11);
  638. if (cuepos_ == NULL) cuepos_ = new ::PlayerInfo_Vec3D;
  639. return cuepos_;
  640. }
  641. // @@protoc_insertion_point(namespace_scope)
  642. #ifndef SWIG
  643. namespace google {
  644. namespace protobuf {
  645. } // namespace google
  646. } // namespace protobuf
  647. #endif // SWIG
  648. // @@protoc_insertion_point(global_scope)
  649. #endif // PROTOBUF_playerInfo_2eproto__INCLUDED