#include <armagetronad_wrap.h>
Public Member Functions | |
SwigDirector_GSimpleAI (VALUE self) | |
virtual | ~SwigDirector_GSimpleAI () |
virtual REAL | DoThink () |
Definition at line 86 of file armagetronad_wrap.h.
SwigDirector_GSimpleAI::SwigDirector_GSimpleAI | ( | VALUE | self | ) |
Definition at line 2827 of file armagetronad_wrap.cxx.
02827 : gSimpleAI(), Swig::Director(self) { 02828 02829 }
SwigDirector_GSimpleAI::~SwigDirector_GSimpleAI | ( | ) | [virtual] |
REAL SwigDirector_GSimpleAI::DoThink | ( | ) | [virtual] |
Implements gSimpleAI.
Definition at line 2836 of file armagetronad_wrap.cxx.
References NULL, REAL, SWIG_ArgError, SWIG_AsVal_float(), SWIG_ErrorType, and SWIG_IsOK.
02836 { 02837 REAL c_result ; 02838 VALUE result; 02839 02840 result = rb_funcall(swig_get_self(), rb_intern("do_think"), 0, NULL); 02841 float swig_val; 02842 int swig_res = SWIG_AsVal_float(result, &swig_val); 02843 if (!SWIG_IsOK(swig_res)) { 02844 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""REAL""'"); 02845 } 02846 c_result = static_cast< REAL >(swig_val); 02847 return (REAL) c_result; 02848 }