Skip to content
Browse files

class files (empty)

  • Loading branch information...
1 parent 648d763 commit 491b15be28ef08345b5a6a757bdbe36fe84c737e Dmytro Lytovchenko committed Sep 28, 2011
Showing with 38 additions and 2 deletions.
  1. +6 −2 CMakeLists.txt
  2. +5 −0 src/creature.cpp
  3. +6 −0 src/creature.h
  4. +2 −0 src/player.cpp
  5. +2 −0 src/player.h
  6. +3 −0 src/projectile.cpp
  7. +6 −0 src/projectile.h
  8. +4 −0 src/world.cpp
  9. +4 −0 src/world.h
View
8 CMakeLists.txt
@@ -22,8 +22,12 @@ add_definitions( "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_WARNINGS" "-D_SC
#------ sources ------
set( HGESKEL_SRC
src/main.cpp
- src/menuitem.cpp
- src/menuitem.h )
+ src/menuitem.cpp src/menuitem.h
+ src/player.cpp src/player.h
+ src/world.cpp src/world.h
+ src/creature.cpp src/creature.h
+ src/projectile.cpp src/projectile.h
+ )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${HGESKEL_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${HGESKEL_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
View
5 src/creature.cpp
@@ -0,0 +1,5 @@
+// base Creature class
+// represents a walking or stationary creature which is able to kill player
+// on touch.
+//
+// TODO: more various creature behaviours like ability to shoot, jump, fly?
View
6 src/creature.h
@@ -0,0 +1,6 @@
+// base Creature class
+// represents a walking or stationary creature which is able to kill player
+// on touch.
+//
+// TODO: more various creature behaviours like ability to shoot, jump, fly?
+
View
2 src/player.cpp
@@ -0,0 +1,2 @@
+// Player class
+// controls keyboard interaction and game rules
View
2 src/player.h
@@ -0,0 +1,2 @@
+// Player class
+// controls keyboard interaction and game rules
View
3 src/projectile.cpp
@@ -0,0 +1,3 @@
+// Projectile class
+// a thrown or shot object with defined speed and straight path
+// hits creatures hostile to the shooter, ends its life at solid world objects
View
6 src/projectile.h
@@ -0,0 +1,6 @@
+// Projectile class
+// a thrown or shot object with defined speed and straight path
+// hits creatures hostile to the shooter, ends its life at solid world objects
+//
+// Note: in Mario game empty turtle shell might be counted either as a projectile or as a creature
+// with changes to its logic
View
4 src/world.cpp
@@ -0,0 +1,4 @@
+// World class
+// contains the world and its physical rules (collisions, gravity etc)
+// basically its a level of the game, other levels can be different child of world
+// class and have e.g. negative gravity, or different set of monsters, or no light, etc.
View
4 src/world.h
@@ -0,0 +1,4 @@
+// World class
+// contains the world and its physical rules (collisions, gravity etc)
+// basically its a level of the game, other levels can be different child of world
+// class and have e.g. negative gravity, or different set of monsters, or no light, etc.

0 comments on commit 491b15b

Please sign in to comment.
Something went wrong with that request. Please try again.