Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoMotive.cpp

Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 /** @file GoMotive.cpp
00003     See GoMotive.h */
00004 //----------------------------------------------------------------------------
00005 
00006 #include "SgSystem.h"
00007 #include "GoMotive.h"
00008 
00009 #include <iostream>
00010 
00011 using namespace std;
00012 
00013 //----------------------------------------------------------------------------
00014 
00015 ostream& operator<<(ostream& out, GoMotive motive)
00016 {
00017     static const char* s_string[_GO_NU_MOTIVE] =
00018     {
00019         "None",
00020         "Random",
00021         "Capture",
00022         "Escape",
00023         "Connect",
00024         "Cut",
00025         "ToDivide",
00026         "Urgent",
00027         "Expand",
00028         "Stabilize",
00029         "Reduce",
00030         "Defend",
00031         "Invade",
00032         "Sente",
00033         "Forced",
00034         "OneEye",
00035         "TwoEye",
00036         "Yose",
00037         "Attack",
00038         "Save",
00039         "DoubleAtari",
00040         "Atari",
00041         "KoThreat"
00042     };
00043 
00044     out << s_string[motive];
00045     return out;
00046 }
00047 
00048 //----------------------------------------------------------------------------
00049 
00050 ostream& operator<<(ostream& out, GoModifier modifier)
00051 {
00052     static const char* s_string[_GO_NU_MODIFIER] =
00053     {
00054         "normal",
00055         "veryBig",
00056         "big",
00057         "small",
00058         "verySmall"
00059     };
00060 
00061     out << s_string[modifier];
00062     return out;
00063 }
00064 
00065 //----------------------------------------------------------------------------
00066 


Sun Mar 13 2011 Doxygen 1.7.1