#include <Value.h>
Inheritance diagram for CValue:
Public Types | |
enum | AllocationTYPE { STACKVALUE = 0, HEAPVALUE = 1 } |
enum | DrawTYPE { STARTFRAME = 0, ENDFRAME = 1, INTERFRAME = 2 } |
Public Methods | |
CValue (PyTypeObject *T = &Type) | |
virtual PyObject* | _repr (void) |
PyObject* | _getattr (char* attr) |
void | SpecialRelease () |
virtual PyObject* | ConvertValueToPython () |
virtual CValue* | ConvertPythonToValue (PyObject* pyobj) |
int | _setattr (char* attr,PyObject* value) |
void | PrintHello () |
PyObject* | PyPrintHello (PyObject* args) |
KX_PYMETHOD (CValue,GetName) | |
virtual CValue* | Calc (VALUE_OPERATOR op, CValue *val) = 0 |
virtual CValue* | CalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val) = 0 |
virtual void | SetOwnerExpression (class CExpression* expr) |
void | Execute (const CAction& a) |
int | GetRefCount () |
Reference Counting. More... | |
virtual CValue* | AddRef () |
virtual int | Release () |
virtual void | SetProperty (const CCString& name,CValue* ioProperty) |
Property Management. More... | |
virtual CValue* | GetProperty (const CCString & inName) |
CCString | GetPropertyText (const CCString & inName,const CCString& deftext="") |
float | GetPropertyNumber (const CCString& inName,float defnumber) |
virtual bool | RemoveProperty (const CCString & inName) |
virtual void | ClearProperties () |
virtual void | SetPropertiesModified (bool inModified) |
virtual bool | IsAnyPropertyModified () |
virtual CValue* | GetProperty (int inIndex) |
virtual int | GetPropertyCount () |
virtual void | CloneProperties (CValue* replica) |
virtual CValue* | FindIdentifier (const CCString& identifiername) |
virtual void | SetColorOperator (VALUE_OPERATOR op) |
virtual const CCString& | GetText () = 0 |
virtual float | GetNumber () = 0 |
double* | ZeroVector () |
virtual double* | GetVector3 (bool bGetTransformedVec = false) |
virtual CCString | GetName () = 0 |
virtual void | SetName (CCString name) = 0 |
virtual void | ReplicaSetName (CCString name) = 0 |
virtual void | SetValue (CValue* newval) |
virtual CValue* | GetReplica () = 0 |
CCString | op2str (VALUE_OPERATOR op) |
void | SetSelected (bool bSelected) |
virtual void | SetModified (bool bModified) |
virtual void | SetAffected (bool bAffected=true) |
void | SetReleaseRequested (bool bReleaseRequested) |
void | SetError (bool err) |
void | SetVisible (bool vis) |
virtual bool | IsModified () |
bool | IsError () |
virtual bool | IsAffected () |
virtual bool | IsSelected () |
bool | IsReleaseRequested () |
virtual bool | IsVisible () |
virtual void | SetCustomFlag1 (bool bCustomFlag) |
virtual bool | IsCustomFlag1 () |
virtual void | SetCustomFlag2 (bool bCustomFlag) |
virtual bool | IsCustomFlag2 () |
Static Public Methods | |
PyObject* | PyMake (PyObject*,PyObject*) |
void | PyDestructor (PyObject *P) |
PyObject* | sPyPrintHello (PyObject* self,PyObject* args,PyObject* kwds) |
Protected Methods | |
virtual void | DisableRefCount () |
virtual void | AddDataToReplica (CValue* replica) |
virtual | ~CValue () |
|
|
|
|
|
|
|
|
|
|
Reimplemented in KX_GameObject. Definition at line 495 of file Value.cpp. Referenced by SCA_LogicManager::AddActiveActuator(), KX_GameObject::AddRef(), SCA_TimeEventManager::AddTimeProperty(), FindIdentifier(), CListValue::FindValue(), SCA_ILogicBrick::GetEvent(), MyTake(), SCA_PythonController::PyGetActuators(), SCA_ILogicBrick::PyGetOwner(), SCA_PythonController::PyGetSensors(), SCA_ILogicBrick::RegisterEvent(), SCA_PropertyActuator::Update(), main(), and SCA_PythonController::sPyGetCurrentController(). |
|
Reimplemented in CBoolValue, CEmptyValue, CErrorValue, CFloatValue, CIntValue, CListValue, CStringValue, CVectorValue, CVoidValue, SCA_ILogicBrick, and KX_GameObject. Referenced by SCA_ILogicBrick::Calc(), COperator2Expr::Calculate(), and COperator1Expr::Calculate(). |
|
Reimplemented in CBoolValue, CEmptyValue, CErrorValue, CFloatValue, CIntValue, CListValue, CStringValue, CVectorValue, CVoidValue, SCA_ILogicBrick, and KX_GameObject. Referenced by CVectorValue::Calc(), and SCA_ILogicBrick::CalcFinal(). |
|
Definition at line 361 of file Value.cpp. Referenced by ~CValue(). |
|
Definition at line 453 of file Value.cpp. Referenced by AddDataToReplica(). |
|
Definition at line 632 of file Value.cpp. Referenced by _setattr(). |
|
Reimplemented in CFloatValue, CIntValue, and CStringValue. |
|
Definition at line 537 of file Value.cpp. Referenced by CBoolValue::CBoolValue(), CFloatValue::CFloatValue(), CIntValue::CIntValue(), CStringValue::CStringValue(), CVectorValue::CVectorValue(), and CVoidValue::CVoidValue(). |
|
|
|
Reimplemented in SCA_ExpressionController, and SCA_PropertySensor. Definition at line 564 of file Value.cpp. Referenced by CIdentifierExpr::Calculate(), and _getattr(). |
|
Reimplemented in CPropValue, SCA_ILogicBrick, and KX_GameObject. Referenced by AddDataToReplica(), and CListValue::FindValue(). |
|
Reimplemented in CBoolValue, CEmptyValue, CErrorValue, CFloatValue, CIntValue, CListValue, CStringValue, CVectorValue, CVoidValue, SCA_ILogicBrick, SCA_ISensor, and KX_GameObject. Referenced by CParser::GetFloat(), GetPropertyNumber(), KX_Scene::LogicBeginFrame(), KX_GameObject::PySetPosition(), SetValue(), CIntValue::SetValue(), CFloatValue::SetValue(), CBoolValue::SetValue(), SCA_ExpressionController::Trigger(), and SCA_PropertyActuator::Update(). |
|
|
|
Definition at line 295 of file Value.cpp. Referenced by KX_RaySensor::Evaluate(), FindIdentifier(), GetPropertyNumber(), GetPropertyText(), KX_TouchSensor::HandleCollision(), KX_NearSensor::HandleCollision(), IsAnyPropertyModified(), KX_Scene::LogicBeginFrame(), SetPropertiesModified(), and SCA_PropertyActuator::Update(). |
|
Definition at line 441 of file Value.cpp. Referenced by IsAnyPropertyModified(), and SetPropertiesModified(). |
|
|
|
|
|
Reference Counting.
|
|
|
Reimplemented in CBoolValue, CEmptyValue, CErrorValue, CFloatValue, CIntValue, CListValue, CStringValue, CVectorValue, CVoidValue, SCA_ILogicBrick, and KX_GameObject. Referenced by CIfExpr::Calculate(), SCA_PropertySensor::CheckPropertyCondition(), GetPropertyText(), MyPyCompare(), CStringValue::SetValue(), SCA_ExpressionController::Trigger(), _repr(), and main(). |
|
Reimplemented in CEmptyValue, and CVectorValue. |
|
Definition at line 358 of file Value.h. Referenced by CConstExpr::NeedsRecalculated(). |
|
|
|
|
|
|
|
Definition at line 357 of file Value.h. Referenced by SCA_PropertySensor::CheckPropertyCondition(), CParser::GetValue(), and SCA_ExpressionController::Trigger(). |
|
Reimplemented in CListValue. Definition at line 356 of file Value.h. Referenced by IsAnyPropertyModified(), and CListValue::IsModified(). |
|
Definition at line 360 of file Value.h. Referenced by CConstExpr::CheckLink(). |
|
|
|
|
|
|
|
Definition at line 277 of file Value.h. Referenced by PyPrintHello(). |
|
Reimplemented from PyObjectPlus. |
|
|
|
|
|
|
|
|
Reimplemented in CPropValue, SCA_ILogicBrick, and KX_GameObject. Referenced by AddDataToReplica(). |
|
Definition at line 351 of file Value.h. Referenced by CConstExpr::ClearModified(). |
|
Definition at line 331 of file Value.h. Referenced by CConstExpr::BroadcastOperators(). |
|
Definition at line 362 of file Value.h. Referenced by CVectorValue::CVectorValue(). |
|
|
|
|
|
Reimplemented in CListValue. Definition at line 350 of file Value.h. Referenced by CConstExpr::ClearModified(), CFloatValue::SetFloat(), CListValue::SetModified(), SetPropertiesModified(), CVectorValue::SetValue(), CStringValue::SetValue(), CIntValue::SetValue(), CFloatValue::SetValue(), CBoolValue::SetValue(), and CVectorValue::SetVector(). |
|
Reimplemented in CPropValue, SCA_ILogicBrick, and KX_GameObject. Referenced by CVectorValue::CalcFinal(). |
|
Definition at line 301 of file Value.h. Referenced by COperator2Expr::Calculate(). |
|
|
|
Property Management.
Definition at line 266 of file Value.cpp. Referenced by KX_Scene::AddReplicaObject(), BL_ConvertProperties(), CloneProperties(), KX_Camera::KX_Camera(), KX_Scene::LogicBeginFrame(), SCA_PropertyActuator::Update(), _setattr(), and main(). |
|
|
|
|
|
Reimplemented in CBoolValue, CFloatValue, CIntValue, CStringValue, and CVectorValue. Definition at line 341 of file Value.h. Referenced by SCA_RandomActuator::Update(), and SCA_PropertyActuator::Update(). |
|
|
|
|
|
Definition at line 335 of file Value.h. Referenced by CEmptyValue::GetVector3(). |
|
|
Reimplemented from PyObjectPlus. |
|
Reimplemented from PyObjectPlus. |
|
|
|
|