kgameproperty.h
290 int registerData(KGamePropertyHandler* owner,PropertyPolicy p=PolicyUndefined, TQString name=0);
596 // 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:157
void setValue(type v)
Set the value depending on the current policy (see setConsistent).
Definition: kgameproperty.h:615
bool setLocal(type v)
This function sets the value of the property directly, i.e.
Definition: kgameproperty.h:715
A collection class for KGameProperty objects.
Definition: kgamepropertyhandler.h:72
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:169
void changeValue(type v)
This function does both, change the local value and change the network value.
Definition: kgameproperty.h:744
KGameProperty(int id, KGamePropertyHandler *owner)
Constructs a KGameProperty object.
Definition: kgameproperty.h:597
void setPolicy(PropertyPolicy p)
Changes the consistency policy of a property.
Definition: kgameproperty.h:145
virtual void save(TQDataStream &stream)
Saves the object to a stream.
Definition: kgameproperty.h:754
bool isLocked() const
A locked property can only be changed by the player who has set the lock.
Definition: kgameproperty.h:187
virtual void load(TQDataStream &s)
Reads from a stream and assigns the read value to this object.
Definition: kgameproperty.h:780
const type & operator=(const KGameProperty &property)
This copies the data of property to the KGameProperty object.
Definition: kgameproperty.h:818
const type & operator=(const type &t)
This calls setValue to change the value of the property.
Definition: kgameproperty.h:807