-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDynamicObject.cpp
52 lines (41 loc) · 988 Bytes
/
DynamicObject.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "DynamicObject.h"
#include "Lemming.h"
DynamicObject::DynamicObject(const sf::Vector2f pos, const sf::Vector2f size, const std::string name_file)
:GameObject(pos, size, name_file)
{
}
DynamicObject::~DynamicObject()
{
}
bool DynamicObject::collide(GameObject & other, GameBoard & board)
{
return other.collide(*this, board);
}
bool DynamicObject::collide(ExitGate & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(EntranceGate & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(Wall & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(ClimbingWall & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(Lemming & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(Spikes & other, GameBoard & board)
{
return false;
}
bool DynamicObject::collide(Border & other, GameBoard & board)
{
return false;
}