-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Showing
266 changed files
with
10,768 additions
and
6,615 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
#ifndef _ANIMATION_H | ||
#define _ANIMATION_H | ||
#pragma once | ||
|
||
#include "util.h" | ||
#include "renderer.h" | ||
#include "view_object.h" | ||
|
||
class ViewObject; | ||
|
||
class Animation { | ||
public: | ||
void render(Renderer&, Rectangle bounds, Vec2 origin, double time); | ||
bool isDone(double time) const; | ||
void setBegin(double time); | ||
void render(Renderer&, Rectangle bounds, Vec2 origin, milliseconds time); | ||
bool isDone(milliseconds time) const; | ||
void setBegin(milliseconds time); | ||
static PAnimation thrownObject(Vec2 direction, ViewObject, bool useSprite, Vec2 squareSize); | ||
static PAnimation fromId(AnimationId); | ||
|
||
protected: | ||
Animation(double duration); | ||
Animation(milliseconds duration); | ||
virtual void renderSpec(Renderer&, Rectangle bounds, Vec2 origin, double state) = 0; | ||
|
||
private: | ||
double begin = -1; | ||
double duration; | ||
optional<milliseconds> begin; | ||
milliseconds duration; | ||
}; | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#ifndef _ATTACK_LEVEL_H | ||
#define _ATTACK_LEVEL_H | ||
#pragma once | ||
|
||
enum class AttackLevel { LOW, MIDDLE, HIGH }; | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#ifndef _ATTACK_TYPE_H | ||
#define _ATTACK_TYPE_H | ||
#pragma once | ||
|
||
enum class AttackType { CUT, STAB, CRUSH, PUNCH, BITE, EAT, HIT, SHOOT, SPELL, POSSESS}; | ||
|
||
|
||
#endif |
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
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
Oops, something went wrong.