3 * ***** BEGIN GPL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
20 * All rights reserved.
22 * The Original Code is: all of this file.
24 * Contributor(s): none yet.
26 * ***** END GPL LICENSE BLOCK *****
29 /** \file gameengine/Expressions/IdentifierExpr.cpp
30 * \ingroup expressions
34 #include "IdentifierExpr.h"
36 CIdentifierExpr::CIdentifierExpr(const STR_String& identifier,CValue* id_context)
37 :m_identifier(identifier)
40 m_idContext = id_context->AddRef();
46 CIdentifierExpr::~CIdentifierExpr()
49 m_idContext->Release();
54 CValue* CIdentifierExpr::Calculate()
56 CValue* result = NULL;
58 result = m_idContext->FindIdentifier(m_identifier);
65 bool CIdentifierExpr::MergeExpression(CExpression* otherexpr)
72 unsigned char CIdentifierExpr::GetExpressionID()
74 return CIDENTIFIEREXPRESSIONID;
79 bool CIdentifierExpr::NeedsRecalculated()
86 CExpression* CIdentifierExpr::CheckLink(std::vector<CBrokenLinkInfo*>& brokenlinks)
88 assertd(false); // not implemented yet
94 void CIdentifierExpr::ClearModified()
96 assertd(false); // not implemented yet
101 void CIdentifierExpr::BroadcastOperators(VALUE_OPERATOR op)
103 assertd(false); // not implemented yet