-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mine.cpp
39 lines (34 loc) · 1.45 KB
/
Mine.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
/****************************************************************
** Program name: Final Project
** Author: Milad Mikeal
** Date: 11/23/18
** Description: Mine class derived from space. Mine causes
* soldier to lose 10 steps and start back at the beginning.
****************************************************************/
#include "Mine.hpp"
/****************************************************************
** Description: Constructor. Initializes type to '*'.
****************************************************************/
Mine::Mine() : Space() {
type = '*';
}
/****************************************************************
** Description: Does nothing. Method primarily for soldier.
****************************************************************/
void Mine::setSteps(int) {}
/****************************************************************
** Description: Does nothing. Method primarily for soldier.
****************************************************************/
int Mine::getSteps() {
return 0;
}
/****************************************************************
** Description: Does nothing. Method primarily for soldier.
****************************************************************/
void Mine::addComrade(Space *) {}
/****************************************************************
** Description: Does nothing. Method primarily for soldier.
****************************************************************/
int Mine::numComrades() {
return 0;
}