kgoldrunner
kgrscene.cpp
Go to the documentation of this file.
121 qDebug() << "SIZE" << size << "TL" << m_topLeftX << m_topLeftY << "TILE" << tileSize << "was" << m_tileSize << m_toolbarTileSize;
Definition: kgrscene.h:63
void clear()
Definition: kgrglobals.h:208
void redrawEditToolbar()
int width() const
Definition: kgrglobals.h:207
Definition: kgrscene.h:73
void moveBy(qreal dx, qreal dy)
void setColorAt(qreal position, const QColor &color)
QVector< T > & fill(const T &value, int size)
QByteArray & fill(char ch, int size)
QGraphicsRectItem * addRect(const QRectF &rect, const QPen &pen, const QBrush &brush)
const T & at(int i) const
void setBackgroundBrush(const QBrush &brush)
QSize tileSize() const
Get the current size of the squared region occupied by a single visual element (characters, ladders, bricks etc.).
Definition: kgrscene.h:121
QPoint mapToGlobal(const QPoint &pos) const
Definition: kgrscene.h:70
void setSceneRect(const QRectF &rect)
KGameRenderedItem * getTileItem(const char picType, KGameRenderedItem *currentTile)
Definition: kgrrenderer.cpp:139
Definition: kgrscene.h:71
void setWeight(int weight)
QString text() const
qreal height() const
void setTitle(const QString &newTitle)
Set the text for the title of the current level.
Definition: kgrscene.cpp:227
void setFocalPoint(const QPointF &focalPoint)
void fadeFinished()
int x() const
int y() const
void gotGold(const int spriteId, const int i, const int j, const bool spriteHasGold, const bool lost=false)
Definition: kgrscene.cpp:551
void setRect(const QRectF &rectangle)
virtual QRectF boundingRect() const
void setCurveShape(CurveShape shape)
size
void setPixelSize(int pixelSize)
Definition: kgrglobals.h:174
QString number(int n, int base)
int count(const T &value) const
qreal x() const
qreal y() const
void append(const T &value)
const StartFrame animationStartFrames[nAnimationTypes]
Definition: kgrscene.cpp:31
void changeTheme()
Redraw the scene whenever the current theme has changed.
Definition: kgrscene.cpp:215
void setPos(int x, int y)
void setPos(const QPointF &pos)
Definition: kgrglobals.h:208
void setFont(const QFont &font)
Definition: kgrglobals.h:207
void setCoordinateSystem(int topLeftX, int topLeftY, int tileSize)
Definition: kgrsprite.cpp:120
isActiveWindow
void setRadius(qreal radius)
Definition: kgrrenderer.h:61
Definition: kgrscene.h:61
void setCenter(const QPointF ¢er)
const T & at(int i) const
Definition: kgrglobals.h:174
qreal width() const
QPoint pos()
void setItemIndexMethod(ItemIndexMethod method)
Definition: kgrscene.h:67
void setWidth(int width)
void setPen(const QPen &pen)
Definition: kgrscene.h:65
Definition: kgrglobals.h:208
QPoint mapFromGlobal(const QPoint &pos) const
Definition: kgrview.h:27
Definition: kgrsprite.h:29
Definition: kgrscene.h:70
Definition: kgrglobals.h:174
int height() const
void setVisible(bool visible)
qreal height() const
int lastIndexOf(const T &value, int from) const
void setBrush(const QBrush &brush)
void setUpdateInterval(int interval)
void addItem(QGraphicsItem *item)
void preRenderSprites()
Just as the game starts, ensure that all frames of the "hero" and "enemy" sprites have been rendered...
Definition: kgrscene.cpp:595
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KGameRenderedItem * getBorderItem(QString spriteKey, KGameRenderedItem *currentItem)
Definition: kgrrenderer.cpp:195
Definition: kgrscene.h:69
void setZValue(qreal z)
Definition: kgrglobals.h:174
void startAnimation(const int id, const bool repeating, const int i, const int j, const int time, const Direction dirn, const AnimationType type)
Requests the view to display an animation of a runner or dug brick at a particular cell...
Definition: kgrscene.cpp:497
void start()
Definition: kgrglobals.h:174
void showHiddenLadders(const QList< int > &ladders, const int width)
Definition: kgrscene.cpp:566
void setText(const QString &text)
void setDirection(Direction direction)
KGrSprite * getSpriteItem(const char picType, const int tickTime)
Definition: kgrrenderer.cpp:162
KGameRenderedItem * getBackground(const int level, KGameRenderedItem *currentBackground)
Definition: kgrrenderer.cpp:179
void changeCoordinateSystem(int topLeftX, int topLeftY, int tileSize)
Definition: kgrsprite.cpp:130
void paintCell(const int i, const int j, const char type)
Requests the view to display a particular type of tile at a particular cell, or make it empty and sho...
Definition: kgrscene.cpp:430
qreal width() const
QRectF rect() const
void setStretch(int factor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:24 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:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.