repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Agora compila
[Projeto-PCG.git]
/
gravity.h
blob
ba03faf71874244a5fd70004ec4b0755e3df2eb5
1
#ifndef GRAVITY_H
2
#define GRAVITY_H
3
4
#include <set>
5
#include
"geometry.h"
6
#include
"thing.h"
7
#include
"platform.h"
8
9
class
GravityManager
{
10
private
:
11
std
::
set
<
Thing
*>
things
;
12
std
::
set
<
Platform
*>
platforms
;
13
bool
checkGround
(
Thing
*
thing
,
Platform
*
platform
);
14
public
:
15
void
subscribe
(
Thing
*
thing
);
16
void
addPlatform
(
Platform
*
linha
);
17
void
update
();
18
void
removePlatforms
();
19
};
20
21
#endif