-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#ifndef COLLISION_H | ||
#define COLLISION_H | ||
#ifndef PHX_COLLISION_H | ||
#define PHX_COLLISION_H | ||
|
||
// dependencies | ||
#include <tuple> | ||
class Entity; | ||
|
||
std::pair<int, int> checkCollision(Entity, Entity); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef PHX_FORCE_H | ||
#define PHX_FORCE_H | ||
|
||
// define forces | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,41 @@ | ||
#ifndef PHX_H | ||
#define PHX_H | ||
#ifndef PHX_PHX_H | ||
#define PHX_PHX_H | ||
|
||
#include <tuple> | ||
#include <vector> | ||
|
||
// Constrain | ||
// vitessePersoMax < longeurPersoMin | ||
|
||
// dependencies | ||
class Scene; | ||
class Entity; | ||
|
||
typedef std::pair<unsigned int, unsigned int> Vec; | ||
typedef std::pair<int, int> Vel; | ||
|
||
/** | ||
* Update each Entity in the Scene | ||
*/ | ||
void update(Scene); | ||
|
||
void updateCinematics(Entity&); | ||
void updateCollision(Scene); | ||
|
||
class Cinematics { | ||
private: | ||
Vec m_pos; | ||
Vel m_vel; | ||
}; | ||
|
||
class Hitbox { | ||
private: | ||
std::vector<Vec> m_vertices; | ||
}; | ||
|
||
class PhysicalParameters { | ||
private: | ||
std::vector<int> m_parameters; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef PHX_TOOLBOX_H | ||
#define PHX_TOOLBOX_H | ||
|
||
// static math function and pfd | ||
|
||
#endif |