Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Operator1Expr.h

Go to the documentation of this file.
00001 // Operator1Expr.h: interface for the COperator1Expr class.
00002 /*
00003  * Copyright (c) 1996-2000 Erwin Coumans <[email protected]>

00004  *
00005  * Permission to use, copy, modify, distribute and sell this software

00006  * and its documentation for any purpose is hereby granted without fee,

00007  * provided that the above copyright notice appear in all copies and

00008  * that both that copyright notice and this permission notice appear

00009  * in supporting documentation.  Erwin Coumans makes no

00010  * representations about the suitability of this software for any

00011  * purpose.  It is provided "as is" without express or implied warranty.

00012  *
00013  */
00014 
00015 #if !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)
00016 #define AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_
00017 
00018 
00019 
00020 #include "Expression.h"
00021 
00022 class COperator1Expr : public CExpression  
00023 {
00024         //PLUGIN_DECLARE_SERIAL_EXPRESSION (COperator1Expr,CExpression)
00025 
00026 
00027 
00028 public:
00029         virtual bool MergeExpression(CExpression* otherexpr);
00030         void virtual BroadcastOperators(VALUE_OPERATOR op);
00031 
00032         virtual unsigned char GetExpressionID() { return COPERATOR1EXPRESSIONID;};
00033         CExpression* CheckLink(std::vector<CBrokenLinkInfo*>& brokenlinks);
00034         //virtual bool IsInside(float x,float y,float z,bool bBorderInclude = true);
00035         virtual bool NeedsRecalculated();
00036         void ClearModified() {
00037                 if (m_lhs)
00038                         m_lhs->ClearModified();
00039         }
00040         virtual CValue* Calculate();
00041         COperator1Expr(VALUE_OPERATOR op, CExpression *lhs);
00042         COperator1Expr();
00043         virtual ~COperator1Expr();
00044         
00045         
00046         
00047 private:
00048         VALUE_OPERATOR m_op;
00049         CExpression * m_lhs;
00050 };
00051 
00052 #endif // !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)

Generated at Thu Feb 1 13:03:08 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000