diff options
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resource.cpp b/src/resource.cpp index 4f12e2d..71a13e3 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -28,3 +28,8 @@ Location Resource::getLocation() //Returns resource object Location L(xPosition,yPosition,2); return L; } + +void Resource::eat() +{ + amount-=10; +} |