Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Dec 15, 2021
1 parent e424458 commit c099bf2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions include/entity/strategies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Interfaces:

```
(1) Events Cond/Ett: void flush(unsigned short [NB_KEYS])
(2) Collisions Cond/PhX : std::vector<collisioner> checkCollision(std::vector<Entity>)
(3) Pos Update Cond/Ett :
```

RQ sur (2):
le cond envoie TOUT, la phX teste si les hitbox "toucheur" collisionnent les "touchable"
struct collisionner:
toucheur
touché
vector d'intrication
4 changes: 3 additions & 1 deletion include/entity/strategies/controllable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "strategy.h"
#include <SFML/Window.hpp>

#define NB_KEYS 256



class Controllable : public virtual Strategy
Expand All @@ -13,7 +15,7 @@ class Controllable : public virtual Strategy
Controllable(/* args */);
~Controllable();

void flush(unsigned short[][] inputs); //flush ? events ?, receive an array of boolean (flags) representing if some keys are pressed,
void flush(unsigned short[NB_KEYS] inputs); //flush ? events ?, receive an array of boolean (flags) representing if some keys are pressed,
// WARNIGN needs a convention (between conductor.ControllableHandler and this class) on that boolean array

};
Expand Down

0 comments on commit c099bf2

Please sign in to comment.