-
Notifications
You must be signed in to change notification settings - Fork 0
/
electrode.cpp
57 lines (38 loc) · 1002 Bytes
/
electrode.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
53
54
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: electrode.cpp
* Author: deboramorita
*
* Created on March 15, 2017, 1:41 AM
*/
#include "electrode.h"
Electrode::Electrode(double time, char* file) : Pokemon(time, file) {
this->material = Material::red;
//this->scale.x = 10;
//this->scale.y = 10;
//this->scale.z = 10;
this->position.x = 19;
this->position.y = 0;
this->position.z = -10;
this->rotation.x = 1;
this->rotation.y = 1;
this->rotation.z = 0;
this->rotation.w = -27.5;
this->status = false;
}
Electrode::~Electrode() {
}
void Electrode::defend(bool defend) {
if(this->status = defend) {
this->material = Material::grey;
} else {
this->material = Material::red;
}
}
bool Electrode::isDefending() {
return this->status;
}