libkdegames/libkdegamesprivate/kgame
kgameproperty.h
Go to the documentation of this file.
50 IdGroup=1,
51 IdUserId=2,
52 IdAsyncInput=3,
53 IdTurn=4,
54 IdName=5,
57 IdGameStatus=6,
58 IdMaxPlayer=7,
59 IdMinPlayer=8,
62 IdGrabInput=16,
63 IdReleaseInput=17,
66 IdUser=256,
77 CmdLock=1,
80 CmdAt=51,
81 CmdResize=52,
82 CmdFill=53,
83 CmdSort=54,
85 CmdInsert=61,
86 CmdAppend=62,
87 CmdRemove=63,
88 CmdClear=64
114 PolicyUndefined = 0,
115 PolicyClean = 1,
116 PolicyDirty = 2,
117 PolicyLocal = 3
266 int registerData(int id, KGamePropertyHandler* owner,PropertyPolicy p, const QString& name=QString());
292 int registerData(KGamePropertyHandler* owner,PropertyPolicy p=PolicyUndefined, const QString& name=QString() );
600 // TODO: ID: Very ugly - better use something like parent()->propertyId() or so which assigns a free id automatically.
void setEmittingSignal(bool p)
Sets this property to emit a signal on value changed.
Definition: kgameproperty.h:160
Definition: kgameproperty.h:359
void setValue(type v)
Set the value depending on the current policy (see setConsistent).
Definition: kgameproperty.h:619
bool setLocal(type v)
This function sets the value of the property directly, i.e.
Definition: kgameproperty.h:719
bool isLocked() const
A locked property can only be changed by the player who has set the lock.
Definition: kgameproperty.h:190
A collection class for KGameProperty objects.
Definition: kgamepropertyhandler.h:73
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:172
void changeValue(type v)
This function does both, change the local value and change the network value.
Definition: kgameproperty.h:748
virtual void load(QDataStream &s)
Reads from a stream and assigns the read value to this object.
Definition: kgameproperty.h:784
KGameProperty(int id, KGamePropertyHandler *owner)
Constructs a KGameProperty object.
Definition: kgameproperty.h:601
void setPolicy(PropertyPolicy p)
Changes the consistency policy of a property.
Definition: kgameproperty.h:148
Definition: kgameproperty.h:65
const type & operator=(const KGameProperty &property)
This copies the data of property to the KGameProperty object.
Definition: kgameproperty.h:822
const type & operator=(const type &t)
This calls setValue to change the value of the property.
Definition: kgameproperty.h:811
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 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:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.