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


17 Jun 2010 Doxygen 1.4.7