// test class for R2

#ifdef __TESTCLASS_H__			// when already included,
					// do nothing
#else					// when first include,
#define	__TESTCLASS_H__			// mark included

#include <shinobi.h>			// shinobi api definition

//------------------------------------------------------------------------
// test class definition
//------------------------------------------------------------------------

class CTest{				// test class definition
   // constructor and destructor definition
   public:
      CTest(void){myVal = 100; myX = 0; myY = 0; return;}	// default constructor w/member init
      CTest(int initVal){myVal = initVal; myX = 0; myY = 0; return;}// constructor w/member init
      ~CTest(void){return;}		// destructor

   // public method
   public:
      void SetPosition(int x,int y){myX = x; myY= y; return;}
      void PrintValue(void){njPrint(NJM_LOCATION(myX,myY),"%d",myVal);}	// show value
   // private class member data
   private:
      Sint32	myVal;			// a value
      int		myX;
      int		myY;
   };					// end of class definition

#endif					// __TESTCLASS_H__
