22 lines
350 B
C++
22 lines
350 B
C++
//Powerup class header
|
|
|
|
#ifndef __POWERUP_H_INCLUDED__
|
|
#define __POWERUP_H_INCLUDED__
|
|
|
|
#include<SDL2/SDL.h>
|
|
#include<iostream>
|
|
#include"entity.h"
|
|
#include"player.h"
|
|
|
|
class Entity;
|
|
|
|
class Powerup: public Entity{
|
|
public:
|
|
Powerup(int x, int y, SDL_Renderer** render, Player* player);
|
|
void print(int cameraX);
|
|
protected:
|
|
Player* posu;
|
|
};
|
|
|
|
#endif
|