home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / 2dworld.cpp next >
Encoding:
C/C++ Source or Header  |  2001-08-01  |  218 b   |  15 lines

  1.  
  2. #include "2dworld.h"
  3.  
  4.  
  5. WorldObj::WorldObj ( 2DWorld * world, char * name )
  6. {
  7.     m_name  = name;
  8.     m_world = world;
  9. }
  10.  
  11. void WorldObj::setPos ( int x, int y )
  12. {
  13.     m_world->setPos ( x, y, this );   
  14. }
  15.