granatier
gameview.cpp
Go to the documentation of this file.
void setFocusPolicy(Qt::FocusPolicy policy)
bool isAutoRepeat() const
void setFrameStyle(int style)
QGraphicsScene * scene() const
void keyPressed(QKeyEvent *p_event)
Emitted on key press event for the Game instance.
void keyReleased(QKeyEvent *p_event)
Emitted on key release event for the Game instance.
void resizeEvent(QResizeEvent *p_event)
Resizes the items when the view is resized.
Definition: gameview.cpp:43
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
This class manages the game main loop : it regularly checks the key press events, computes the charac...
Definition: game.h:43
void keyReleaseEvent(QKeyEvent *p_event)
Manages the player actions by hanlding the key release events.
Definition: gameview.cpp:66
void keyPressEvent(QKeyEvent *p_event)
Manages the player actions by hanlding the key press events.
Definition: gameview.cpp:57
This class contains all the Game elements to be drawn on the screen by the GameView instance...
Definition: gamescene.h:50
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
GameView(GameScene *p_scene, Game *p_game)
Creates a new GameView instance.
Definition: gameview.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.