KDEGames
kgameproperty.h
280 int registerData(int id, KGamePropertyHandler *owner, PropertyPolicy p, const QString &name = QString());
306 int registerData(KGamePropertyHandler *owner, PropertyPolicy p = PolicyUndefined, const QString &name = QString());
bool setLocal(type v)
This function sets the value of the property directly, i.e.
Definition: kgameproperty.h:743
WriteOnly
Type type(const QSqlDatabase &db)
QCA_EXPORT void init()
void load(QDataStream &s) override
Reads from a stream and assigns the read value to this object.
Definition: kgameproperty.h:808
KGameProperty(int id, KGamePropertyHandler *owner)
Constructs a KGameProperty object.
Definition: kgameproperty.h:616
void changeValue(type v)
This function does both, change the local value and change the network value.
Definition: kgameproperty.h:772
void setOptimized(bool p)
Sets this property to try to optimize signal and network handling by not sending it out when the prop...
Definition: kgameproperty.h:168
void setValue(type v)
Set the value depending on the current policy (see setConsistent).
Definition: kgameproperty.h:644
bool isLocked() const
A locked property can only be changed by the player who has set the lock.
Definition: kgameproperty.h:195
A collection class for KGameProperty objects.
Definition: kgamepropertyhandler.h:63
const type & operator=(const KGameProperty &property)
This copies the data of property to the KGameProperty object.
Definition: kgameproperty.h:846
void setPolicy(PropertyPolicy p)
Changes the consistency policy of a property.
Definition: kgameproperty.h:132
const type & operator=(const type &t)
This calls setValue to change the value of the property.
Definition: kgameproperty.h:835
void setEmittingSignal(bool p)
Sets this property to emit a signal on value changed.
Definition: kgameproperty.h:150
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:05:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:05:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.