Skip to content
Snippets Groups Projects
Commit 5efb06b4 authored by Barna Réka Emese's avatar Barna Réka Emese
Browse files

Upload New File

parent 0200295a
Branches
No related tags found
No related merge requests found
#ifndef JATEK_TER_HPP
#define JATEK_TER_HPP
#include "widget.hpp"
#include "jatekvezerlo.hpp"
class JatekTer : public Widget {
public:
JatekTer(Alkalmazas* szulo, int x, int y, int meret, JatekVezerlo* jatekVezerlo);
virtual void rajzol() override;
virtual void rajzolBuffer(genv::canvas& cel) override;
virtual void kezel(genv::event ev) override;
bool vanFokuszkent() const { return _fokusztalt; }
void mozgatFokuszt(int dx, int dy);
void lepesFokuszuPoziciora();
virtual bool kivalasztva(int eger_x, int eger_y) override;
void resetFokuszt();
private:
int mezoMeret_;
int tablaMeret_;
JatekVezerlo* jatekVezerlo_;
bool _fokusztalt = false;
int fokusztX_ = 7; // Középen kezdjük
int fokusztY_ = 7;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment