KDEGames
kgameproperty.h
257 int registerData(int id, KGamePropertyHandler* owner,PropertyPolicy p, const QString& name=QString());
283 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:710
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:775
KGameProperty(int id, KGamePropertyHandler *owner)
Constructs a KGameProperty object.
Definition: kgameproperty.h:592
void changeValue(type v)
This function does both, change the local value and change the network value.
Definition: kgameproperty.h:739
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:163
void setValue(type v)
Set the value depending on the current policy (see setConsistent).
Definition: kgameproperty.h:610
bool isLocked() const
A locked property can only be changed by the player who has set the lock.
Definition: kgameproperty.h:181
A collection class for KGameProperty objects.
Definition: kgamepropertyhandler.h:64
const type & operator=(const KGameProperty &property)
This copies the data of property to the KGameProperty object.
Definition: kgameproperty.h:813
void setPolicy(PropertyPolicy p)
Changes the consistency policy of a property.
Definition: kgameproperty.h:139
const type & operator=(const type &t)
This calls setValue to change the value of the property.
Definition: kgameproperty.h:802
void setEmittingSignal(bool p)
Sets this property to emit a signal on value changed.
Definition: kgameproperty.h:151
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue May 17 2022 03:46:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue May 17 2022 03:46:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.