00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef SG_PROP_H
00012 #define SG_PROP_H
00013
00014 #include <string>
00015 #include <vector>
00016 #include "SgBlackWhite.h"
00017 #include "SgPoint.h"
00018 #include "SgVector.h"
00019
00020 class SgProp;
00021
00022
00023
00024
00025 typedef int SgPropID;
00026
00027
00028 typedef int SgPropFlags;
00029
00030
00031
00032
00033 enum SgPropPointFmt {
00034
00035
00036 SG_PROPPOINTFMT_GO,
00037
00038
00039
00040
00041
00042 SG_PROPPOINTFMT_HEX
00043 };
00044
00045
00046
00047 namespace SgPropUtil
00048 {
00049 std::string EscapeSpecialCharacters(const std::string& s,
00050 bool escapeColon);
00051
00052
00053
00054 SgPropPointFmt GetPointFmt(int gameNumber);
00055
00056
00057 std::string PointToSgfString(SgMove p, int boardSize,
00058 SgPropPointFmt fmt, int fileFormat = 4);
00059
00060
00061
00062
00063 SgPoint SgfStringToPoint(const std::string& s, int boardSize,
00064 SgPropPointFmt fmt);
00065 }
00066
00067
00068
00069
00070 const int SG_MAX_PROPCLASS = 150;
00071
00072
00073 const int SG_PROPCLASS_BLACK = 1 << 0;
00074
00075
00076 const int SG_PROPCLASS_WHITE = 1 << 1;
00077
00078
00079 const int SG_PROPCLASS_INFO = 1 << 2;
00080
00081
00082 const int SG_PROPCLASS_ANNO = 1 << 3;
00083
00084
00085 const int SG_PROPCLASS_STAT = 1 << 4;
00086
00087
00088 const int SG_PROPCLASS_ROOT = 1 << 5;
00089
00090
00091 const int SG_PROPCLASS_ANNO_MOVE = 1 << 6;
00092
00093
00094 const int SG_PROPCLASS_ANNO_POS = 1 << 7;
00095
00096
00097 const int SG_PROPCLASS_MOVE = 1 << 8;
00098
00099
00100 const int SG_PROPCLASS_MARK = 1 << 9;
00101
00102
00103 const int SG_PROPCLASS_TIME = 1 << 10;
00104
00105
00106 const int SG_PROPCLASS_ABSTRACT = 1 << 11;
00107
00108
00109 const int SG_PROPCLASS_NOT_FF3 = 1 << 12;
00110
00111
00112 const int SG_PROPCLASS_NOT_FF4 = 1 << 13;
00113
00114
00115 const int SG_PROPCLASS_CUSTOM = 1 << 14;
00116
00117
00118 const int SG_PROPCLASS_NOTCLEAN = 1 << 15;
00119
00120
00121 const int SG_PROPCLASS_NEWLINE = 1 << 16;
00122
00123
00124
00125
00126
00127 class SgPropList
00128 {
00129 public:
00130 SgPropList();
00131
00132 ~SgPropList();
00133
00134
00135 bool IsEmpty() const;
00136
00137
00138 void Clear();
00139
00140
00141
00142
00143
00144
00145 SgProp* Get(SgPropID id) const;
00146
00147
00148 SgProp* GetPropContainingText(const std::string& findText) const;
00149
00150
00151
00152 void Add(const SgProp* prop);
00153
00154
00155
00156 void MoveToFront(SgPropID id);
00157
00158
00159
00160 bool Remove(const SgProp* prop);
00161
00162
00163
00164
00165 void Remove(SgPropID id, const SgProp* protectProp);
00166
00167 void RemoveProp(SgPropID id) { Remove(id, 0); }
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177 bool AppendMoveAnnotation(std::string* s) const;
00178
00179 private:
00180 friend class SgPropListIterator;
00181
00182
00183 SgVectorOf<SgProp> m_list;
00184
00185
00186 SgPropList(const SgPropList&);
00187
00188
00189 SgPropList& operator=(const SgPropList&);
00190 };
00191
00192 inline bool SgPropList::IsEmpty() const
00193 {
00194 return m_list.IsEmpty();
00195 }
00196
00197
00198
00199
00200 class SgPropListIterator
00201 {
00202 public:
00203
00204 SgPropListIterator(const SgPropList& propList);
00205
00206 void operator++();
00207
00208 SgProp* operator*() const;
00209
00210 operator bool() const;
00211
00212 private:
00213 SgVectorIteratorOf<SgProp> m_listIterator;
00214
00215
00216 SgPropListIterator(const SgPropListIterator&);
00217
00218
00219 SgPropListIterator& operator=(const SgPropListIterator&);
00220 };
00221
00222 inline SgPropListIterator::SgPropListIterator(const SgPropList& propList)
00223 : m_listIterator(propList.m_list)
00224 {
00225 }
00226
00227 inline void SgPropListIterator::operator++()
00228 {
00229 m_listIterator.operator++();
00230 }
00231
00232 inline SgProp* SgPropListIterator::operator*() const
00233 {
00234 return m_listIterator.operator*();
00235 }
00236
00237 inline SgPropListIterator::operator bool() const
00238 {
00239 return m_listIterator.operator bool();
00240 }
00241
00242
00243
00244
00245 class SgProp
00246 {
00247 public:
00248 explicit SgProp(SgPropID id);
00249
00250 virtual ~SgProp();
00251
00252
00253
00254 virtual SgProp* Duplicate() const = 0;
00255
00256
00257 SgPropID ID() const;
00258
00259
00260
00261 virtual SgPropFlags Flags() const;
00262
00263
00264
00265 virtual std::string Label() const;
00266
00267
00268 bool Flag(SgPropFlags flags) const;
00269
00270
00271
00272
00273
00274
00275
00276
00277 virtual bool ToString(std::vector<std::string>& values, int boardSize,
00278 SgPropPointFmt fmt, int fileFormat) const = 0;
00279
00280
00281
00282
00283 virtual bool FromString(const std::vector<std::string>& values,
00284 int boardSize, SgPropPointFmt fmt) = 0;
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296 static SgPropID Register(SgProp* prop, const char* label,
00297 SgPropFlags flags = 0);
00298
00299
00300 static SgProp* CreateProperty(SgPropID id);
00301
00302
00303
00304 static SgPropID GetIDOfLabel(const std::string& label);
00305
00306
00307
00308
00309 static SgPropID ConvertFindTextToPropID(const std::string& findText);
00310
00311
00312
00313
00314 static void Init();
00315
00316
00317 static void Fini();
00318
00319
00320
00321
00322 SgBlackWhite Player() const;
00323
00324 bool IsPlayer(SgBlackWhite player) const;
00325
00326
00327
00328
00329 static SgPropID OpponentProp(SgPropID id);
00330
00331
00332
00333
00334 static SgPropID PlayerProp(SgPropID id, SgBlackWhite player);
00335
00336
00337
00338 virtual void ChangeToOpponent();
00339
00340
00341
00342
00343
00344 bool MatchesID(SgPropID id) const;
00345
00346
00347
00348 virtual bool ContainsText(const std::string& findText);
00349
00350 protected:
00351 SgPropID m_id;
00352
00353 static bool Initialized();
00354
00355 private:
00356
00357 static bool s_initialized;
00358
00359 static int s_numPropClasses;
00360
00361 static SgPropFlags s_flags[SG_MAX_PROPCLASS];
00362
00363 static std::string s_label[SG_MAX_PROPCLASS];
00364
00365 static SgProp* s_prop[SG_MAX_PROPCLASS];
00366
00367
00368 SgProp(const SgProp&);
00369
00370
00371 SgProp& operator=(const SgProp&);
00372 };
00373
00374 inline SgProp::SgProp(SgPropID id)
00375 : m_id(id)
00376 {
00377 }
00378
00379 inline SgPropID SgProp::ID() const
00380 {
00381 return m_id;
00382 }
00383
00384 inline bool SgProp::Flag(SgPropFlags flags) const
00385 {
00386 return (Flags() & flags) != 0;
00387 }
00388
00389
00390
00391
00392
00393
00394
00395
00396 class SgPropUnknown
00397 : public SgProp
00398 {
00399 public:
00400 explicit SgPropUnknown(SgPropID id);
00401
00402 SgPropUnknown(SgPropID id, std::string label,
00403 const std::vector<std::string>& values);
00404
00405 SgProp* Duplicate() const;
00406
00407 bool ToString(std::vector<std::string>& values, int boardSize,
00408 SgPropPointFmt fmt, int fileFormat) const;
00409
00410 bool FromString(const std::vector<std::string>& values,
00411 int boardSize, SgPropPointFmt fmt);
00412
00413 std::string Label() const;
00414
00415 private:
00416 std::string m_label;
00417
00418 std::vector<std::string> m_values;
00419 };
00420
00421 inline SgPropUnknown::SgPropUnknown(SgPropID id)
00422 : SgProp(id)
00423 {
00424 }
00425
00426 inline SgPropUnknown::SgPropUnknown(SgPropID id, std::string label,
00427 const std::vector<std::string>& values)
00428 : SgProp(id),
00429 m_label(label),
00430 m_values(values)
00431 {
00432 }
00433
00434 inline std::string SgPropUnknown::Label() const
00435 {
00436 return m_label;
00437 }
00438
00439
00440
00441
00442 class SgPropInt
00443 : public SgProp
00444 {
00445 public:
00446 explicit SgPropInt(SgPropID id);
00447
00448 SgPropInt(SgPropID id, int value);
00449
00450 SgProp* Duplicate() const;
00451
00452 bool ToString(std::vector<std::string>& values, int boardSize,
00453 SgPropPointFmt fmt, int fileFormat) const;
00454
00455 bool FromString(const std::vector<std::string>& values,
00456 int boardSize, SgPropPointFmt fmt);
00457
00458
00459 int Value() const;
00460
00461 bool IsValue(int value) const;
00462
00463
00464 void SetValue(int value);
00465
00466 protected:
00467 int m_value;
00468 };
00469
00470 inline SgPropInt::SgPropInt(SgPropID id)
00471 : SgProp(id),
00472 m_value(0)
00473 {
00474 }
00475
00476 inline SgPropInt::SgPropInt(SgPropID id, int value)
00477 : SgProp(id),
00478 m_value(value)
00479 {
00480 }
00481
00482 inline int SgPropInt::Value() const
00483 {
00484 SG_ASSERT(Initialized());
00485 return m_value;
00486 }
00487
00488 inline bool SgPropInt::IsValue(int value) const
00489 {
00490 return m_value == value;
00491 }
00492
00493 inline void SgPropInt::SetValue(int value)
00494 {
00495 m_value = value;
00496 }
00497
00498
00499
00500
00501 class SgPropReal
00502 : public SgProp
00503 {
00504 public:
00505 explicit SgPropReal(SgPropID id);
00506
00507
00508
00509
00510
00511
00512 SgPropReal(SgPropID id, double value, int precision = 0);
00513
00514 SgProp* Duplicate() const;
00515
00516 bool ToString(std::vector<std::string>& values, int boardSize,
00517 SgPropPointFmt fmt, int fileFormat) const;
00518
00519 bool FromString(const std::vector<std::string>& values,
00520 int boardSize, SgPropPointFmt fmt);
00521
00522 double Value() const;
00523
00524 void SetValue(double value, int precision = 0);
00525
00526 protected:
00527 int m_precision;
00528
00529 double m_value;
00530 };
00531
00532 inline SgPropReal::SgPropReal(SgPropID id)
00533 : SgProp(id),
00534 m_precision(0),
00535 m_value(0)
00536 {
00537 }
00538
00539 inline SgPropReal::SgPropReal(SgPropID id, double value, int precision)
00540 : SgProp(id),
00541 m_precision(precision),
00542 m_value(value)
00543 {
00544 }
00545
00546 inline double SgPropReal::Value() const
00547 {
00548 return m_value;
00549 }
00550
00551 inline void SgPropReal::SetValue(double value, int precision)
00552 {
00553 m_value = value;
00554 m_precision = precision;
00555 }
00556
00557
00558
00559
00560
00561 class SgPropSimple
00562 : public SgProp
00563 {
00564 public:
00565 explicit SgPropSimple(SgPropID id);
00566
00567 SgProp* Duplicate() const;
00568
00569 bool ToString(std::vector<std::string>& values, int boardSize,
00570 SgPropPointFmt fmt, int fileFormat) const;
00571
00572 bool FromString(const std::vector<std::string>& values,
00573 int boardSize, SgPropPointFmt fmt);
00574 };
00575
00576 inline SgPropSimple::SgPropSimple(SgPropID id)
00577 : SgProp(id)
00578 {
00579 }
00580
00581
00582
00583
00584
00585
00586 class SgPropMultiple
00587 : public SgPropInt
00588 {
00589 public:
00590 explicit SgPropMultiple(SgPropID id);
00591
00592 SgPropMultiple(SgPropID id, int value);
00593
00594 SgProp* Duplicate() const;
00595 };
00596
00597 inline SgPropMultiple::SgPropMultiple(SgPropID id)
00598 : SgPropInt(id, 1)
00599 {
00600 }
00601
00602 inline SgPropMultiple::SgPropMultiple(SgPropID id, int value)
00603 : SgPropInt(id, value)
00604 {
00605 }
00606
00607
00608
00609
00610 class SgPropValue
00611 : public SgPropInt
00612 {
00613 public:
00614 explicit SgPropValue(SgPropID id);
00615
00616 SgPropValue(SgPropID id, int value);
00617
00618 SgProp* Duplicate() const;
00619
00620 virtual void ChangeToOpponent();
00621 };
00622
00623 inline SgPropValue::SgPropValue(SgPropID id)
00624 : SgPropInt(id)
00625 {
00626 }
00627
00628 inline SgPropValue::SgPropValue(SgPropID id, int value)
00629 : SgPropInt(id, value)
00630 {
00631 }
00632
00633
00634
00635
00636 class SgPropTime
00637 : public SgPropReal
00638 {
00639 public:
00640 SgPropTime(SgPropID id, double value = 0, int precision = 1);
00641
00642 virtual ~SgPropTime();
00643
00644 SgProp* Duplicate() const;
00645 };
00646
00647 inline SgPropTime::SgPropTime(SgPropID id, double value, int precision)
00648 : SgPropReal(id, value, precision)
00649 {
00650 }
00651
00652
00653
00654
00655
00656 class SgPropMSec
00657 : public SgPropTime
00658 {
00659 public:
00660 explicit SgPropMSec(SgPropID id);
00661
00662 SgPropMSec(SgPropID id, double value);
00663
00664 virtual ~SgPropMSec();
00665
00666 SgProp* Duplicate() const;
00667 };
00668
00669 inline SgPropMSec::SgPropMSec(SgPropID id)
00670 : SgPropTime(id, 0, 3)
00671 {
00672 }
00673
00674 inline SgPropMSec::SgPropMSec(SgPropID id, double value)
00675 : SgPropTime(id, value, 3)
00676 {
00677 }
00678
00679
00680
00681
00682
00683 class SgPropMove
00684 : public SgProp
00685 {
00686 public:
00687 explicit SgPropMove(SgPropID id);
00688
00689 SgPropMove(SgPropID id, SgMove move);
00690
00691 SgProp* Duplicate() const;
00692
00693
00694 SgPoint Value() const;
00695
00696 bool IsValue(SgPoint move) const;
00697
00698 bool ToString(std::vector<std::string>& values, int boardSize,
00699 SgPropPointFmt fmt, int fileFormat) const;
00700
00701 bool FromString(const std::vector<std::string>& values,
00702 int boardSize, SgPropPointFmt fmt);
00703
00704 protected:
00705 SgPoint m_move;
00706 };
00707
00708 inline SgPropMove::SgPropMove(SgPropID id)
00709 : SgProp(id),
00710 m_move(SG_NULLMOVE)
00711 {
00712 }
00713
00714 inline SgPropMove::SgPropMove(SgPropID id, SgMove move)
00715 : SgProp(id),
00716 m_move(move)
00717 {
00718 }
00719
00720 inline SgPoint SgPropMove::Value() const
00721 {
00722 return m_move;
00723 }
00724
00725 inline bool SgPropMove::IsValue(SgPoint move) const
00726 {
00727 return m_move == move;
00728 }
00729
00730
00731
00732
00733 class SgPropPointList
00734 : public SgProp
00735 {
00736 public:
00737 explicit SgPropPointList(SgPropID id);
00738
00739 SgPropPointList(SgPropID id, const SgVector<SgPoint>& list);
00740
00741 virtual ~SgPropPointList();
00742
00743 SgProp* Duplicate() const;
00744
00745
00746 const SgVector<SgPoint>& Value() const;
00747 SgVector<SgPoint>& Value();
00748
00749
00750 void SetValue(const SgVector<SgPoint>& list);
00751
00752 void PushBack(SgPoint p);
00753
00754 bool ToString(std::vector<std::string>& values, int boardSize,
00755 SgPropPointFmt fmt, int fileFormat) const;
00756
00757 bool FromString(const std::vector<std::string>& values,
00758 int boardSize, SgPropPointFmt fmt);
00759
00760 private:
00761 SgVector<SgPoint> m_list;
00762 };
00763
00764 inline SgPropPointList::SgPropPointList(SgPropID id)
00765 : SgProp(id)
00766 {
00767 }
00768
00769 inline const SgVector<SgPoint>& SgPropPointList::Value() const
00770 {
00771 return m_list;
00772 }
00773
00774 inline SgVector<SgPoint>& SgPropPointList::Value()
00775 {
00776 return m_list;
00777 }
00778
00779 inline void SgPropPointList::SetValue(const SgVector<SgPoint>& list)
00780 {
00781 m_list = list;
00782 }
00783
00784 inline void SgPropPointList::PushBack(SgPoint p)
00785 {
00786 m_list.PushBack(p);
00787 }
00788
00789
00790
00791
00792 class SgPropText
00793 : public SgProp
00794 {
00795 public:
00796 explicit SgPropText(SgPropID id);
00797
00798 SgPropText(SgPropID id, const std::string& text);
00799
00800 SgProp* Duplicate() const;
00801
00802
00803 const std::string& Value() const;
00804
00805 std::string& Value();
00806
00807 void SetValue(const std::string& value);
00808
00809 void AppendText(const std::string& text);
00810
00811 bool ToString(std::vector<std::string>& values, int boardSize,
00812 SgPropPointFmt fmt, int fileFormat) const;
00813
00814 bool FromString(const std::vector<std::string>& values,
00815 int boardSize, SgPropPointFmt fmt);
00816
00817 virtual bool ContainsText(const std::string& findText);
00818
00819 private:
00820 std::string m_text;
00821 };
00822
00823 inline SgPropText::SgPropText(SgPropID id)
00824 : SgProp(id),
00825 m_text()
00826 {
00827 }
00828
00829 inline SgPropText::SgPropText(SgPropID id, const std::string& text)
00830 : SgProp(id),
00831 m_text(text)
00832 {
00833 }
00834
00835 inline const std::string& SgPropText::Value() const
00836 {
00837 return m_text;
00838 }
00839
00840 inline std::string& SgPropText::Value()
00841 {
00842 return m_text;
00843 }
00844
00845 inline void SgPropText::SetValue(const std::string& value)
00846 {
00847 m_text = value;
00848 }
00849
00850 inline void SgPropText::AppendText(const std::string& text)
00851 {
00852 m_text += text;
00853 }
00854
00855
00856
00857
00858 class SgPropTextList
00859 : public SgProp
00860 {
00861 public:
00862 explicit SgPropTextList(SgPropID id);
00863
00864 SgPropTextList(SgPropID id, const SgVector<SgPoint>& points,
00865 SgVectorOf<std::string> strings);
00866
00867 virtual ~SgPropTextList();
00868
00869 SgProp* Duplicate() const;
00870
00871
00872
00873 const SgVector<SgPoint>& GetPointsWithText() const;
00874
00875
00876
00877
00878 bool GetStringAtPoint(SgPoint p, std::string* s) const;
00879
00880
00881
00882 void AddStringAtPoint(SgPoint p, const std::string& s);
00883
00884
00885
00886 void AppendToStringAtPoint(SgPoint p, const std::string& s);
00887
00888
00889 void ClearStringAtPoint(SgPoint p);
00890
00891 bool ToString(std::vector<std::string>& values, int boardSize,
00892 SgPropPointFmt fmt, int fileFormat) const;
00893
00894 bool FromString(const std::vector<std::string>& values,
00895 int boardSize, SgPropPointFmt fmt);
00896
00897 virtual bool ContainsText(const std::string& findText);
00898
00899 private:
00900 SgVector<SgPoint> m_points;
00901
00902 SgVectorOf<std::string> m_strings;
00903 };
00904
00905 inline SgPropTextList::SgPropTextList(SgPropID id)
00906 : SgProp(id),
00907 m_points(),
00908 m_strings()
00909 {
00910 }
00911
00912 inline const SgVector<SgPoint>& SgPropTextList::GetPointsWithText() const
00913 {
00914 return m_points;
00915 }
00916
00917
00918
00919
00920 class SgPropPlayer
00921 : public SgProp
00922 {
00923 public:
00924 explicit SgPropPlayer(SgPropID id);
00925
00926 SgPropPlayer(SgPropID id, int player);
00927
00928 SgProp* Duplicate() const;
00929
00930 SgBlackWhite Value() const;
00931
00932 void SetValue(SgBlackWhite player);
00933
00934 virtual void ChangeToOpponent();
00935
00936 bool ToString(std::vector<std::string>& values, int boardSize,
00937 SgPropPointFmt fmt, int fileFormat) const;
00938
00939 bool FromString(const std::vector<std::string>& values,
00940 int boardSize, SgPropPointFmt fmt);
00941
00942 private:
00943 SgBlackWhite m_player;
00944 };
00945
00946 inline SgPropPlayer::SgPropPlayer(SgPropID id)
00947 : SgProp(id),
00948 m_player(SG_BLACK)
00949 {
00950 }
00951
00952 inline SgPropPlayer::SgPropPlayer(SgPropID id, int player)
00953 : SgProp(id),
00954 m_player(player)
00955 {
00956 }
00957
00958 inline SgBlackWhite SgPropPlayer::Value() const
00959 {
00960 return m_player;
00961 }
00962
00963 inline void SgPropPlayer::SetValue(SgBlackWhite player)
00964 {
00965 m_player = player;
00966 }
00967
00968
00969
00970
00971
00972 class SgPropAddStone
00973 : public SgPropPointList
00974 {
00975 public:
00976 explicit SgPropAddStone(SgPropID id);
00977
00978 SgPropAddStone(SgPropID id, const SgVector<SgPoint>& list);
00979
00980 virtual ~SgPropAddStone();
00981
00982 SgProp* Duplicate() const;
00983 };
00984
00985 inline SgPropAddStone::SgPropAddStone(SgPropID id)
00986 : SgPropPointList(id)
00987 {
00988 }
00989
00990 inline SgPropAddStone::SgPropAddStone(SgPropID id,
00991 const SgVector<SgPoint>& list)
00992 : SgPropPointList(id, list)
00993 {
00994 }
00995
00996
00997
00998
00999
01000
01001
01002 extern SgPropID SG_PROP_NONE;
01003
01004
01005 extern SgPropID SG_PROP_UNKNOWN;
01006
01007
01008
01009
01010
01011
01012
01013 extern SgPropID SG_PROP_MOVE;
01014
01015
01016 extern SgPropID SG_PROP_MOVE_BLACK;
01017
01018
01019 extern SgPropID SG_PROP_MOVE_WHITE;
01020
01021
01022
01023
01024
01025
01026
01027 extern SgPropID SG_PROP_ADD_BLACK;
01028
01029
01030 extern SgPropID SG_PROP_ADD_WHITE;
01031
01032
01033 extern SgPropID SG_PROP_ADD_EMPTY;
01034
01035
01036 extern SgPropID SG_PROP_PLAYER;
01037
01038
01039
01040
01041
01042
01043 extern SgPropID SG_PROP_VALUE;
01044
01045
01046 extern SgPropID SG_PROP_TERR_BLACK;
01047
01048
01049 extern SgPropID SG_PROP_TERR_WHITE;
01050
01051
01052
01053
01054
01055
01056
01057 extern SgPropID SG_PROP_MARKS;
01058
01059
01060 extern SgPropID SG_PROP_SELECT;
01061
01062
01063 extern SgPropID SG_PROP_MARKED;
01064
01065
01066 extern SgPropID SG_PROP_TRIANGLE;
01067
01068
01069 extern SgPropID SG_PROP_SQUARE;
01070
01071
01072 extern SgPropID SG_PROP_DIAMOND;
01073
01074
01075 extern SgPropID SG_PROP_CIRCLE;
01076
01077
01078 extern SgPropID SG_PROP_DIMMED;
01079
01080
01081 extern SgPropID SG_PROP_LABEL;
01082
01083
01084
01085
01086
01087
01088
01089 extern SgPropID SG_PROP_TIMES;
01090
01091
01092 extern SgPropID SG_PROP_TIME_BLACK;
01093
01094
01095 extern SgPropID SG_PROP_TIME_WHITE;
01096
01097
01098 extern SgPropID SG_PROP_OT_BLACK;
01099
01100
01101 extern SgPropID SG_PROP_OT_WHITE;
01102
01103
01104 extern SgPropID SG_PROP_OT_NU_MOVES;
01105
01106
01107 extern SgPropID SG_PROP_OT_PERIOD;
01108
01109
01110 extern SgPropID SG_PROP_OVERHEAD;
01111
01112
01113 extern SgPropID SG_PROP_LOSE_TIME;
01114
01115
01116
01117
01118
01119
01120
01121 extern SgPropID SG_PROP_COUNT;
01122
01123
01124 extern SgPropID SG_PROP_TIME_USED;
01125
01126
01127 extern SgPropID SG_PROP_NUM_NODES;
01128
01129
01130 extern SgPropID SG_PROP_NUM_LEAFS;
01131
01132
01133 extern SgPropID SG_PROP_MAX_DEPTH;
01134
01135
01136 extern SgPropID SG_PROP_DEPTH;
01137
01138
01139 extern SgPropID SG_PROP_PART_DEPTH;
01140
01141
01142 extern SgPropID SG_PROP_EVAL;
01143
01144
01145 extern SgPropID SG_PROP_EXPECTED;
01146
01147
01148 extern SgPropID SG_PROP_SELF_TEST;
01149
01150
01151
01152
01153
01154
01155
01156 extern SgPropID SG_PROP_FORMAT;
01157
01158
01159 extern SgPropID SG_PROP_SIZE;
01160
01161
01162 extern SgPropID SG_PROP_GAME;
01163
01164
01165 extern SgPropID SG_PROP_SPEC_BLACK;
01166
01167
01168 extern SgPropID SG_PROP_SPEC_WHITE;
01169
01170
01171 extern SgPropID SG_PROP_CHINESE;
01172
01173
01174 extern SgPropID SG_PROP_APPLIC;
01175
01176
01177
01178
01179
01180
01181
01182 extern SgPropID SG_PROP_ANNOTATE;
01183
01184
01185 extern SgPropID SG_PROP_COMMENT;
01186
01187
01188 extern SgPropID SG_PROP_NAME;
01189
01190
01191 extern SgPropID SG_PROP_CHECK;
01192
01193
01194 extern SgPropID SG_PROP_SIGMA;
01195
01196
01197 extern SgPropID SG_PROP_HOTSPOT;
01198
01199
01200 extern SgPropID SG_PROP_FIGURE;
01201
01202
01203
01204
01205
01206
01207
01208 extern SgPropID SG_PROP_POS_ANNO;
01209
01210
01211 extern SgPropID SG_PROP_GOOD_BLACK;
01212
01213
01214 extern SgPropID SG_PROP_GOOD_WHITE;
01215
01216
01217 extern SgPropID SG_PROP_EVEN_POS;
01218
01219
01220 extern SgPropID SG_PROP_UNCLEAR;
01221
01222
01223
01224
01225
01226
01227
01228 extern SgPropID SG_PROP_MOVE_ANNO;
01229
01230
01231 extern SgPropID SG_PROP_GOOD_MOVE;
01232
01233
01234 extern SgPropID SG_PROP_BAD_MOVE;
01235
01236
01237 extern SgPropID SG_PROP_INTERESTING;
01238
01239
01240 extern SgPropID SG_PROP_DOUBTFUL;
01241
01242
01243
01244
01245
01246
01247
01248 extern SgPropID SG_PROP_INFO;
01249
01250
01251 extern SgPropID SG_PROP_GAME_NAME;
01252
01253
01254 extern SgPropID SG_PROP_GAME_COMMENT;
01255
01256
01257 extern SgPropID SG_PROP_EVENT;
01258
01259
01260 extern SgPropID SG_PROP_ROUND;
01261
01262
01263 extern SgPropID SG_PROP_DATE;
01264
01265
01266 extern SgPropID SG_PROP_PLACE;
01267
01268
01269 extern SgPropID SG_PROP_PLAYER_BLACK;
01270
01271
01272 extern SgPropID SG_PROP_PLAYER_WHITE;
01273
01274
01275 extern SgPropID SG_PROP_RESULT;
01276
01277
01278 extern SgPropID SG_PROP_USER;
01279
01280
01281 extern SgPropID SG_PROP_TIME;
01282
01283
01284 extern SgPropID SG_PROP_SOURCE;
01285
01286
01287 extern SgPropID SG_PROP_COPYRIGHT;
01288
01289
01290 extern SgPropID SG_PROP_ANALYSIS;
01291
01292
01293 extern SgPropID SG_PROP_RANK_BLACK;
01294
01295
01296 extern SgPropID SG_PROP_RANK_WHITE;
01297
01298
01299 extern SgPropID SG_PROP_TEAM_BLACK;
01300
01301
01302 extern SgPropID SG_PROP_TEAM_WHITE;
01303
01304
01305 extern SgPropID SG_PROP_OPENING;
01306
01307
01308 extern SgPropID SG_PROP_RULES;
01309
01310
01311 extern SgPropID SG_PROP_HANDICAP;
01312
01313
01314 extern SgPropID SG_PROP_KOMI;
01315
01316
01317
01318
01319
01320
01321
01322 extern SgPropID SG_PROP_FIND_MOVE;
01323
01324
01325 extern SgPropID SG_PROP_FIND_TEXT;
01326
01327
01328 extern SgPropID SG_PROP_BRANCH;
01329
01330
01331 extern SgPropID SG_PROP_TERMINAL;
01332
01333
01334
01335
01336
01337
01338
01339 extern SgPropID SG_PROP_MOTIVE;
01340
01341
01342 extern SgPropID SG_PROP_SEQUENCE;
01343
01344
01345 extern SgPropID SG_PROP_NOT_EMPTY;
01346
01347
01348 extern SgPropID SG_PROP_NOT_BLACK;
01349
01350
01351 extern SgPropID SG_PROP_NOT_WHITE;
01352
01353
01354
01355
01356
01357 #endif // SG_PROP_H