Skip to content

Commit

Permalink
Sketch headers PhX
Browse files Browse the repository at this point in the history
  • Loading branch information
aTxr authored and amtoine committed Dec 8, 2021
1 parent d7fbf6e commit b991000
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 4 deletions.
8 changes: 6 additions & 2 deletions include/phx/collision.h
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
7 changes: 7 additions & 0 deletions include/phx/force.h
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

39 changes: 37 additions & 2 deletions include/phx/phx.h
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
6 changes: 6 additions & 0 deletions include/phx/toolbox.h
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

0 comments on commit b991000

Please sign in to comment.