aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-04-29 18:28:28 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-04-29 18:28:28 -0400
commit40d164ea3d8437cd5a06a06d5b89bd938d3dd906 (patch)
treeec22853ca9a18706a3318ea9d16464d9a36a7419 /main.cpp
parent18380eb2e6443c2736b4958b01e7ba2fe2cfa318 (diff)
no more getSystem
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 5cd4a44..b6e5e24 100644
--- a/main.cpp
+++ b/main.cpp
@@ -117,9 +117,9 @@ int main(int argc, char *argv[])
/////////////////////////////
- game::engine.getSystem<InventorySystem>()->add("Hunters Bow", 1);
- game::engine.getSystem<InventorySystem>()->add("Wood Sword", 1);
- game::engine.getSystem<InventorySystem>()->add("Arrow", 198);
+ InventorySystem::add("Hunters Bow", 1);
+ InventorySystem::add("Wood Sword", 1);
+ InventorySystem::add("Arrow", 198);
std::list<SDL_Event> eventQueue;
@@ -188,8 +188,8 @@ int main(int argc, char *argv[])
unloadTextures();
- game::engine.getSystem<WorldSystem>()->die();
- game::engine.getSystem<WindowSystem>()->die();
+ WorldSystem::die();
+ WindowSystem::die();
return 0; // Calls everything passed to atexit
}