YAPOG  0.0.1
Yet Another Pokemon Online Game
ICollidable.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_ICOLLIDABLE_HPP
2 # define YAPOG_ICOLLIDABLE_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
9  struct ICollidable : public ISpatial3
10  {
11  virtual ~ICollidable () { }
12 
13  virtual bool CollidesWith (const ICollidable& other) const = 0;
14  virtual bool CollidesWith (
15  const ICollidable& other,
16  const Vector2& offset) const = 0;
17  };
18 } // namespace yap
19 
20 #endif // YAPOG_ICOLLIDABLE_HPP