Game Develop C++ Platform: ObjectTools.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
ObjectTools.h
1 #ifndef OBJECTTOOLS_H
2 #define OBJECTTOOLS_H
3
4 #include <string>
5 #include <vector>
6 #include <map>
7 class RuntimeScene;
8 class RuntimeObject;
9 typedef bool (*TwoObjectsListsTestFunc)(RuntimeObject*, RuntimeObject*, float extraParameter);
10
21 bool GD_API TwoObjectListsTest(std::map <std::string, std::vector<RuntimeObject*> *> objectsLists1,
22 std::map <std::string, std::vector<RuntimeObject*> *> objectsLists2,
23 bool conditionInverted,
24 TwoObjectsListsTestFunc functor, float extraParameter );
25
29 bool GD_API ObjectsTurnedToward( std::map <std::string, std::vector<RuntimeObject*> *> objectsLists1, std::map <std::string, std::vector<RuntimeObject*> *> objectsLists2, float tolerance, bool conditionInverted );
30
34 bool GD_API HitBoxesCollision( std::map <std::string, std::vector<RuntimeObject*> *> objectsLists1, std::map <std::string, std::vector<RuntimeObject*> *> objectsLists2, bool conditionInverted );
35
39 double GD_API PickedObjectsCount( std::map <std::string, std::vector<RuntimeObject*> *> objectsLists );
40
44 float GD_API DistanceBetweenObjects(std::map <std::string, std::vector<RuntimeObject*> *> objectsLists1, std::map <std::string, std::vector<RuntimeObject*> *> objectsLists2, float length, bool conditionInverted);
45
49 bool GD_API MovesToward( std::map <std::string, std::vector<RuntimeObject*> *> objectsLists1, std::map <std::string, std::vector<RuntimeObject*> *> objectsLists2, float tolerance, bool conditionInverted );
50
51 #endif // OBJECTTOOLS_H
52