Google
Web alhem.net

RowoHandler.cpp

Go to the documentation of this file.
00001 //#include <stdio.h>
00002 
00003 #include "Robot.h"
00004 #include "RowoHandler.h"
00005 
00006 
00007 
00008 
00009 RowoHandler::RowoHandler()
00010 :SocketHandler()
00011 ,m_pMap(NULL)
00012 {
00013 }
00014 
00015 
00016 RowoHandler::~RowoHandler()
00017 {
00018 }
00019 
00020 
00021 void RowoHandler::InjectRobot(const std::string& filename)
00022 {
00023         Robot *p = new Robot(*m_pMap, filename);
00024         if (p -> IsOk())
00025         {
00026                 GetMap().AddObject(p);
00027         }
00028         else
00029         {
00030                 delete p;
00031         }
00032 }
00033 
00034 

Generated for Robot World by doxygen 1.3.6

Page, code, and content Copyright (C) 2004 by Anders Hedström