Programm auf "Kettenreaktion" erweitert
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "SDL2/SDL.h"
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
class ball
|
||||
{
|
||||
@@ -12,13 +13,17 @@ public:
|
||||
SDL_Color color;
|
||||
float velx;
|
||||
float vely;
|
||||
|
||||
bool alive;
|
||||
|
||||
public:
|
||||
ball();
|
||||
~ball();
|
||||
|
||||
//ball(int x, int y);
|
||||
ball(int x, int y, int vx, int vy);
|
||||
|
||||
int GetXPos();
|
||||
int GetYPos();
|
||||
void Update(float f_DeltaTime);
|
||||
void Update(float f_DeltaTime, std::vector<ball> &list);
|
||||
void Draw(SDL_Renderer* renderer);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user