style cleanup - remove unneeded ';'s
[blender.git] / source / gameengine / Expressions / Operator1Expr.h
1 /*
2  * Operator1Expr.h: interface for the COperator1Expr class.
3  * Copyright (c) 1996-2000 Erwin Coumans <coockie@acm.org>
4  *
5  * Permission to use, copy, modify, distribute and sell this software
6  * and its documentation for any purpose is hereby granted without fee,
7  * provided that the above copyright notice appear in all copies and
8  * that both that copyright notice and this permission notice appear
9  * in supporting documentation.  Erwin Coumans makes no
10  * representations about the suitability of this software for any
11  * purpose.  It is provided "as is" without express or implied warranty.
12  *
13  */
14
15 /** \file Operator1Expr.h
16  *  \ingroup expressions
17  */
18
19 #if !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)
20 #define AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_
21
22 #include "Expression.h"
23
24 class COperator1Expr : public CExpression  
25 {
26         //PLUGIN_DECLARE_SERIAL_EXPRESSION (COperator1Expr,CExpression)
27
28
29
30 public:
31         virtual bool MergeExpression(CExpression* otherexpr);
32         virtual void BroadcastOperators(VALUE_OPERATOR op);
33
34         virtual unsigned char GetExpressionID() { return COPERATOR1EXPRESSIONID; }
35         CExpression* CheckLink(std::vector<CBrokenLinkInfo*>& brokenlinks);
36         //virtual bool IsInside(float x,float y,float z,bool bBorderInclude = true);
37         virtual bool NeedsRecalculated();
38         void ClearModified() {
39                 if (m_lhs)
40                         m_lhs->ClearModified();
41         }
42         virtual CValue* Calculate();
43         COperator1Expr(VALUE_OPERATOR op, CExpression *lhs);
44         COperator1Expr();
45         virtual ~COperator1Expr();
46         
47         
48         
49 private:
50         VALUE_OPERATOR m_op;
51         CExpression * m_lhs;
52
53
54 #ifdef WITH_CXX_GUARDEDALLOC
55 public:
56         void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:COperator1Expr"); }
57         void operator delete( void *mem ) { MEM_freeN(mem); }
58 #endif
59 };
60
61 #endif // !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)
62