Skip to content

Commit

Permalink
Added individual story branches
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsv committed Feb 20, 2017
1 parent 7798449 commit 9d0dd33
Show file tree
Hide file tree
Showing 14 changed files with 92 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "Making the code all nice and pretty..."
echo "Running compile command..."

# Compile
g++ -std=c++11 src/userin.cpp src/dbstore.cpp src/story.cpp src/print.cpp src/misc.cpp src/game.cpp -l sqlite3 -o bin/cosmic-horizon.o
g++ -std=c++11 src/userin.cpp src/dbstore.cpp src/story.cpp src/print.cpp src/story-branches/story_B.cpp src/story-branches/story_D.cpp src/story-branches/story_E.cpp src/story-branches/story_J.cpp src/story-branches/story_L.cpp src/story-branches/story_S.cpp src/misc.cpp src/game.cpp -l sqlite3 -o bin/cosmic-horizon.o

# Check return value to see whether or not it all crashed and burned
rc=$?; if ! [[ $rc != 0 ]];
Expand Down
9 changes: 9 additions & 0 deletions src/story-branches/story_B.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_B()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_B.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_B();
9 changes: 9 additions & 0 deletions src/story-branches/story_D.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_D()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_D.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_D();
9 changes: 9 additions & 0 deletions src/story-branches/story_E.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_E()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_E.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_E();
9 changes: 9 additions & 0 deletions src/story-branches/story_J.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_J()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_J.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_J();
9 changes: 9 additions & 0 deletions src/story-branches/story_L.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_L()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_L.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_L();
9 changes: 9 additions & 0 deletions src/story-branches/story_S.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "../print.h"
#include <string>
using namespace std;

int start_S()
{
// Put your story code here
return 0;
}
4 changes: 4 additions & 0 deletions src/story-branches/story_S.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <string>
using namespace std;

int start_S();
13 changes: 13 additions & 0 deletions src/story.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include "dbstore.h"
#include "print.h"
#include "story-branches/story_B.h"
#include "story-branches/story_D.h"
#include "story-branches/story_E.h"
#include "story-branches/story_J.h"
#include "story-branches/story_L.h"
#include "story-branches/story_S.h"
#include "userin.h"
#include <iostream>
#include <string>
Expand Down Expand Up @@ -126,6 +132,13 @@ void explore_new_planet()

void start_story()
{
start_B();
start_D();
start_E();
start_J();
start_L();
start_S();

print("You wake up and find out you are stranded on a\n"
"foreign planet after you crashed your spaceship.",
"magenta");
Expand Down

1 comment on commit 9d0dd33

@jmsv
Copy link
Owner Author

@jmsv jmsv commented on 9d0dd33 Feb 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branches created - related to issue #3

Please sign in to comment.