-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c4a41c3
Showing
65 changed files
with
3,883 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CXX=g++ | ||
CXXFLAGS= -MMD -Wall | ||
|
||
OBJECTS=main.o cell.o game.o controller.o view.o textdisplay.o gold.o dragonhoard.o potion.o character.o npc.o human.o dwarf.o elf.o orcs.o merchant.o dragon.o halfling.o status_effect.o atkboost.o atkwound.o defboost.o defwound.o pc.o drow.o goblin.o shade.o troll.o vampire.o generate.o posn.o | ||
|
||
DEPENDS=${OBJECTS:.o=.d} | ||
|
||
EXEC=cc3k | ||
|
||
${EXEC}: ${OBJECTS} | ||
${CXX} ${CXXFLAGS} ${OBJECTS} -o ${EXEC} | ||
|
||
-include ${DEPENDS} | ||
|
||
clean: | ||
rm *.o *.d cc3k | ||
.PHONY: clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|-----------------------------------------------------------------------------| | ||
| | | ||
| |--------------------------| |-----------------------| | | ||
| |..........................| |.......................| | | ||
| |..........................+########+.......................|-------| | | ||
| |..........................| # |...............................|--| | | ||
| |..........................| # |..................................|--| | | ||
| |----------+---------------| # |----+----------------|...............| | | ||
| # ############# |...............| | | ||
| # # |-----+------| |...............| | | ||
| # # |............| |...............| | | ||
| ################### |............| ######+...............| | | ||
| # # |............| # |...............| | | ||
| # # |-----+------| # |--------+------| | | ||
| |---------+-----------| # # # # | | ||
| |.....................| # # # |----+------| | | ||
| |.....................| ######################## |...........| | | ||
| |.....................| # # |...........| | | ||
| |.....................| # |------+--------------------|...........| | | ||
| |.....................| # |.......................................| | | ||
| |.....................+##########+.......................................| | | ||
| |.....................| |.......................................| | | ||
| |---------------------| |---------------------------------------| | | ||
| | | ||
|-----------------------------------------------------------------------------| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// atkboost.cpp | ||
// cc3k | ||
// | ||
// Created by Arthur Ren on 2015-07-16. | ||
// Copyright (c) 2015 Tianyi Ben. All rights reserved. | ||
// | ||
|
||
#include "atkboost.h" | ||
|
||
|
||
AtkBoost::AtkBoost(PC *pc, int amount): StatusEffect(pc, amount) {} | ||
|
||
AtkBoost::~AtkBoost() {} | ||
|
||
int AtkBoost::getAtk() { return pc->getAtk() + amount; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// atkboost.h | ||
// cc3k | ||
// | ||
// Created by Arthur Ren on 2015-07-16. | ||
// Copyright (c) 2015 Tianyi Ben. All rights reserved. | ||
// | ||
|
||
#ifndef __cc3k__atkboost__ | ||
#define __cc3k__atkboost__ | ||
|
||
#include "status_effect.h" | ||
|
||
class AtkBoost: public StatusEffect { | ||
public: | ||
AtkBoost(PC *pc, int amount); | ||
~AtkBoost(); | ||
virtual int getAtk(); | ||
}; | ||
|
||
#endif /* defined(__cc3k__atkboost__) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// atkwound.cpp | ||
// cc3k | ||
// | ||
// Created by Arthur Ren on 2015-07-16. | ||
// Copyright (c) 2015 Tianyi Ben. All rights reserved. | ||
// | ||
|
||
#include "atkwound.h" | ||
|
||
AtkWound::AtkWound(PC *pc, int amount): StatusEffect(pc, amount) {} | ||
|
||
|
||
AtkWound::~AtkWound() {} | ||
|
||
|
||
int AtkWound::getAtk() { | ||
int temp = pc->getAtk() - amount; | ||
return temp >= 0 ? temp : 0; | ||
} // getAtk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// atkwound.h | ||
// cc3k | ||
// | ||
// Created by Arthur Ren on 2015-07-16. | ||
// Copyright (c) 2015 Tianyi Ben. All rights reserved. | ||
// | ||
|
||
#ifndef __cc3k__atkwound__ | ||
#define __cc3k__atkwound__ | ||
|
||
#include "status_effect.h" | ||
|
||
class AtkWound: public StatusEffect { | ||
public: | ||
AtkWound(PC *pc, int amount); | ||
~AtkWound(); | ||
virtual int getAtk(); | ||
}; | ||
#endif /* defined(__cc3k__atkwound__) */ |
Oops, something went wrong.