-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawVisitor.cpp
More file actions
69 lines (52 loc) · 2.01 KB
/
Copy pathDrawVisitor.cpp
File metadata and controls
69 lines (52 loc) · 2.01 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "DrawVisitor.hpp"
#include "Honey.h"
#include "Lamai.h"
#include "Ardei.h"
#include "Castraveti.h"
#include "Bomba.h"
#include "MagicQuestion.h"
#include "MagicTasty.h"
#include "MagicNoObstacles.h"
#include "MagicDrink.h"
#include "MagicFreeze.h"
#include "MagicSlow.h"
#include "MagicInvulnerable.h"
#include "Joc.h"
#include "Exceptions.h"
DrawVisitor::DrawVisitor(Joc* const joc_dat) : joc(joc_dat) {}
void DrawVisitor::Visit( Honey *element) {
DrawObjectHelper< Honey, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( Lamai *element) {
DrawObjectHelper< Lamai, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( Ardei *element) {
DrawObjectHelper< Ardei, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( Castraveti *element) {
DrawObjectHelper< Castraveti, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( Bomba *element) {
DrawObjectHelper< Bomba, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicQuestion *element) {
DrawObjectHelper< MagicQuestion, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicTasty *element) {
DrawObjectHelper< MagicTasty, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicNoObstacles *element) {
DrawObjectHelper< MagicNoObstacles, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicDrink *element){
DrawObjectHelper< MagicDrink, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicFreeze *element){
DrawObjectHelper< MagicFreeze, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicSlow *element){
DrawObjectHelper< MagicSlow, OutOfBoundsObjException> ( *element, joc->window);
}
void DrawVisitor::Visit( MagicInvulnerable *element){
DrawObjectHelper< MagicInvulnerable, OutOfBoundsObjException> ( *element, joc->window);
}