Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ICollisionListener.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2012 Dylan Blair
3 //
4 // email: dblair@alumni.cs.utexas.edu
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 
21 #ifndef ICOLLISION_LISTENER_H
22 #define ICOLLISION_LISTENER_H
23 
24 #include "IObject.h"
25 
26 #include "../CD_LIB/CDVolume.h"
27 
28 #include <vector>
29 
30 namespace OpenSkyNet {
31  namespace Core {
35  public:
41  virtual void setNonCollidingData(Object* obj_) { UNUSED(obj_); }
42 
45  virtual void handleNonCollidingTransformApplied(Object* obj_) { UNUSED(obj_); }
46 
51  virtual bool handleCollisions(Object* collidee_, std::vector<CD::HitInfo>& collisions_, float& dt_) { UNUSED(collidee_); UNUSED(collisions_); UNUSED(dt_); return false; }
52 
55  virtual void handleNewCollisions(Object* collidee_, std::vector<Object*>& colliders_) { UNUSED(collidee_); UNUSED(colliders_); }
56 
59  virtual void handleDeletedCollisions(Object* collidee_, std::vector<Object*>& colliders_) { UNUSED(collidee_); UNUSED(colliders_); }
60 
62  virtual bool handleWrongSidedness(Object* collidee_, std::vector<CD::HitInfo>& collisions_) { UNUSED(collidee_); UNUSED(collisions_); return false; }
63 
65  virtual bool handleOutOfGrid(Object* obj_) { UNUSED(obj_); return false; }
66  };
67  }
68 }
69 
70 #endif //ICOLLISION_LISTENER_H
#define UNUSED(var)
Definition: UTypes.h:35
virtual void handleNewCollisions(Object *collidee_, std::vector< Object * > &colliders_)
Definition: ICollisionListener.h:55
virtual void handleNonCollidingTransformApplied(Object *obj_)
Definition: ICollisionListener.h:45
virtual bool handleOutOfGrid(Object *obj_)
Definition: ICollisionListener.h:65
virtual bool handleWrongSidedness(Object *collidee_, std::vector< CD::HitInfo > &collisions_)
Definition: ICollisionListener.h:62
virtual void setNonCollidingData(Object *obj_)
Definition: ICollisionListener.h:41
#define CORE_DLL
Definition: CCoreDLL.h:57
Definition: IObject.h:36
Definition: ICollisionListener.h:34
virtual bool handleCollisions(Object *collidee_, std::vector< CD::HitInfo > &collisions_, float &dt_)
Definition: ICollisionListener.h:51
virtual void handleDeletedCollisions(Object *collidee_, std::vector< Object * > &colliders_)
Definition: ICollisionListener.h:59