-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added all class files and stubbed member functions to get the program…
… to compile.
- Loading branch information
Jordan Baxter
committed
May 21, 2018
1 parent
313e8db
commit b625d44
Showing
10 changed files
with
248 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//Ball.cpp | ||
//Jordan Baxter | ||
|
||
#include "Ball.h" | ||
|
||
Ball::Ball() { | ||
//TODO | ||
} | ||
|
||
void Ball::move() { | ||
|
||
} | ||
|
||
void Ball::draw() { | ||
//TODO | ||
} | ||
|
||
void Ball::bounceWall() { | ||
//TODO | ||
} | ||
|
||
void Ball::bounceCeiling() { | ||
//TODO | ||
} | ||
|
||
void Ball::bounceBrick() { | ||
//TODO | ||
} | ||
|
||
void Ball::bouncePaddle() { | ||
//TODO | ||
} | ||
|
||
bool Ball::hitPaddle() { | ||
//TODO | ||
return true; | ||
} | ||
|
||
bool Ball::hitWall() { | ||
//TODO | ||
return true; | ||
} | ||
|
||
bool Ball::hitCeiling() { | ||
//TODO | ||
return true; | ||
} | ||
|
||
bool Ball::hitFloor() { | ||
//TODO | ||
return true; | ||
} | ||
|
||
bool Ball::hitBrick() { | ||
//TODO | ||
return true; | ||
} |
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,34 @@ | ||
//Ball.h | ||
//Jordan Baxter | ||
|
||
#pragma once | ||
#include "ofMain.h" | ||
|
||
class GameWorld; | ||
class Paddle; | ||
class Brick; | ||
|
||
class Ball { | ||
public: | ||
Ball(); | ||
void move(); | ||
void draw(); | ||
void bounceWall(); | ||
void bounceCeiling(); | ||
void bounceBrick(); | ||
void bouncePaddle(); | ||
bool hitPaddle(); | ||
bool hitWall(); | ||
bool hitCeiling(); | ||
bool hitFloor(); | ||
bool hitBrick(); | ||
|
||
private: | ||
float x; | ||
float y; | ||
float r; | ||
float v; | ||
float s; | ||
ofColor color; | ||
|
||
}; |
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 @@ | ||
//Brick.cpp | ||
//Jordan Baxter | ||
|
||
#include "Brick.h" | ||
|
||
Brick::Brick() { | ||
//TODO | ||
} | ||
|
||
void Brick::damage() { | ||
//TODO | ||
} | ||
|
||
void Brick::draw() { | ||
//TODO | ||
} |
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,18 @@ | ||
//Brick.h | ||
//Jordan Baxter | ||
|
||
#pragma once | ||
|
||
class GameWorld; | ||
class Ball; | ||
class Paddle; | ||
|
||
class Brick { | ||
public: | ||
Brick(); | ||
void damage(); | ||
void draw(); | ||
private: | ||
int strength; | ||
bool powerup; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//Paddle.cpp | ||
//Jordan Baxter | ||
|
||
#include "Paddle.h" | ||
|
||
Paddle::Paddle() { | ||
//TODO | ||
} | ||
void Paddle::draw() { | ||
//TODO | ||
} | ||
|
||
void Paddle::move() { | ||
//TODO | ||
} |
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,24 @@ | ||
//Paddle.h | ||
//Jordan Baxter | ||
|
||
#pragma once | ||
|
||
class GameWorld; | ||
class Brick; | ||
class Ball; | ||
|
||
class Paddle { | ||
public: | ||
Paddle(); | ||
void draw(); | ||
void move(); | ||
|
||
private: | ||
float w; | ||
float h; | ||
float x; | ||
float y; | ||
bool big; | ||
bool laser; | ||
bool sticky; | ||
}; |
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