Skip to content

Commit

Permalink
Move Robominer method implementation to .cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRStevens committed May 17, 2023
1 parent 0c1545a commit 5c683ca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions OPHD/MapObjects/Robots/Robominer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "Robominer.h"

#include "../../Constants/Strings.h"


Robominer::Robominer() :
Robot(constants::Robominer, "robots/robominer.sprite", Robot::Type::Miner)
{
}
6 changes: 2 additions & 4 deletions OPHD/MapObjects/Robots/Robominer.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#pragma once

#include "../Robot.h"
#include "../../Constants/Strings.h"


class Robominer : public Robot
{
public:
Robominer(): Robot(constants::Robominer, "robots/robominer.sprite", Robot::Type::Miner)
{
}
Robominer();

};
1 change: 1 addition & 0 deletions OPHD/ophd.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ IF NOT "$(VcpkgInstalledDir)" == "" (
<ClCompile Include="MapObjects\Robot.cpp" />
<ClCompile Include="MapObjects\Robots\Robodigger.cpp" />
<ClCompile Include="MapObjects\Robots\Robodozer.cpp" />
<ClCompile Include="MapObjects\Robots\Robominer.cpp" />
<ClCompile Include="MapObjects\Structures\Factory.cpp" />
<ClCompile Include="MapObjects\Structures\MineFacility.cpp" />
<ClCompile Include="MapObjects\Structure.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions OPHD/ophd.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@
<ClCompile Include="MapObjects\Robots\Robodozer.cpp">
<Filter>Source Files\MapObjects</Filter>
</ClCompile>
<ClCompile Include="MapObjects\Robots\Robominer.cpp">
<Filter>Source Files\MapObjects</Filter>
</ClCompile>
<ClCompile Include="MapObjects\Structures\Factory.cpp">
<Filter>Source Files\MapObjects\Structures</Filter>
</ClCompile>
Expand Down

0 comments on commit 5c683ca

Please sign in to comment.