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 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 setEmittingSignal(bool p)
Sets this property to emit a signal on value changed.
Definition: kgameproperty.h:157
void setPolicy(PropertyPolicy p)
Changes the consistency policy of a property.
Definition: kgameproperty.h:145
virtual void load(TQDataStream &s)=0
This will read the value of this property from the stream.
bool sendProperty()
Forward the data to the owner of this property which then sends it over network.
Definition: kgameproperty.cpp:124
void emitSignal()
Causes the parent object to emit a signal on value change.
Definition: kgameproperty.cpp:185
bool isLocked() const
A locked property can only be changed by the player who has set the lock.
Definition: kgameproperty.h:187
A collection class for KGameProperty objects.
Definition: kgamepropertyhandler.h:73
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 type &t)
This calls setValue to change the value of the property.
Definition: kgameproperty.h:807
const type & operator=(const KGameProperty &property)
This copies the data of property to the KGameProperty object.
Definition: kgameproperty.h:818
void setValue(type v)
Set the value depending on the current policy (see setConsistent).
Definition: kgameproperty.h:615
void changeValue(type v)
This function does both, change the local value and change the network value.
Definition: kgameproperty.h:744
bool setLocal(type v)
This function sets the value of the property directly, i.e.
Definition: kgameproperty.h:715
KGameProperty(int id, KGamePropertyHandler *owner)
Constructs a KGameProperty object.
Definition: kgameproperty.h:597