+/** \file gameengine/Expressions/VectorValue.cpp
+ * \ingroup expressions
+ */
// VectorValue.cpp: implementation of the CVectorValue class.
/*
* Copyright (c) 1996-2000 Erwin Coumans <coockie@acm.org>
*
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#ifdef WIN32
+#if defined(WIN32) && !defined(FREE_WINDOWS)
#pragma warning (disable:4786)
#endif
m_vec[KX_Z] = m_transformedvec[KX_Z] = z;
}
-CVectorValue::CVectorValue(double vec[],STR_String name,AllocationTYPE alloctype) {
+CVectorValue::CVectorValue(double vec[],const char *name,AllocationTYPE alloctype)
+{
SetCustomFlag1(false);//FancyOutput=false;
SetName(name);
}
-CVectorValue::CVectorValue(double vec[],AllocationTYPE alloctype) {
+CVectorValue::CVectorValue(double vec[],AllocationTYPE alloctype)
+{
SetCustomFlag1(false);//FancyOutput=false;
}
+/**
+ * pre: the type of val is dtype
+ * ret: a new object containing the result of applying operator op to val and
+ * this object
+ */
CValue* CVectorValue::CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)
-/*
-pre: the type of val is dtype
-ret: a new object containing the result of applying operator op to val and
-this object
-*/
{
CValue *ret = NULL;
return gstrVectorStr;
}
-CValue* CVectorValue::GetReplica() {
+CValue* CVectorValue::GetReplica()
+{
CVectorValue* replica = new CVectorValue(*this);
- CValue::AddDataToReplica(replica);
+ replica->ProcessReplica();
return replica;
};
-/*void CVectorValue::Transform(rcMatrix4x4 mat)
+#if 0
+void CVectorValue::Transform(rcMatrix4x4 mat)
{
m_transformedvec = mat*m_vec;
}
-*/
-
-
+#endif