creationMouseHandler.cpp

Go to the documentation of this file.
00001 /*
00002  * creationMouseHandler.cpp
00003  *
00004  *  Created on: Jan 9, 2013
00005  *      Author: sushil
00006  */
00007 
00008 #include "DEBUG.h"
00009 #include <creationMouseHandler.h>
00010 
00011 OgreGFX::CreationMouseHandler::CreationMouseHandler(GraphicsInteractionManager *gim, const std::set<OIS::KeyCode> *mods) :
00012         OgreGFX::MouseHandler(gim, mods, OIS::MB_Left) {
00013 
00014         DEBUG(std::cout << "Constructed the creation handler" << std::endl;)
00015 }
00016 
00017 
00018 OgreGFX::CreationMouseHandler::~CreationMouseHandler() {
00019 }
00020 
00021 void OgreGFX::CreationMouseHandler::handleMouseEvent(const OIS::MouseEvent &arg) {
00022         DEBUG(std::cout << "Called MouseHandler for Ctrl-LeftMouseButton" << std::endl;)
00023 //      boost::mutex::scoped_lock scoped_lock(creationLock);
00024         FastEcslent::Entity *ent = this->gfxMgr->engine->entityMgr->createEntityForPlayerAndSide(FastEcslent::TANK, this->gfxMgr->uiMgr->posUnderMouse, 0.0, FastEcslent::BLUE, FastEcslent::ONE);
00025 }

Generated on Fri Dec 13 14:54:17 2013 for FastECSLent by  doxygen 1.5.4