|
@@ -4,8 +4,7 @@
|
|
#include <cassert>
|
|
#include <cassert>
|
|
#include <string>
|
|
#include <string>
|
|
#include "unit.h"
|
|
#include "unit.h"
|
|
-
|
|
|
|
-Unit::Unit() {}
|
|
|
|
|
|
+#include "AbstractFactory.h"
|
|
|
|
|
|
int Unit::getCost(){
|
|
int Unit::getCost(){
|
|
return cost_;
|
|
return cost_;
|
|
@@ -201,9 +200,4 @@ void Unit::moveToCell(Cell* destination) {
|
|
setMovementSpeed(decreasedValue);
|
|
setMovementSpeed(decreasedValue);
|
|
setLocation(destination);
|
|
setLocation(destination);
|
|
}
|
|
}
|
|
-}
|
|
|
|
-
|
|
|
|
-int main() {
|
|
|
|
- std::cout << "Hello, world!\n";
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+}
|