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

SCA_IActuator.cpp

Go to the documentation of this file.
00001 #include "SCA_IActuator.h"
00002 
00003 
00004 bool SCA_IActuator::Update(double curtime,double deltatime)

00005 {
00006         //GetParent()->SetDebugColor(GetDrawColor());
00007         return true;
00008 }
00009 
00010 bool    SCA_IActuator::IsNegativeEvent()

00011 {
00012         bool bPositiveEvent = false;
00013         bool bNegativeEvent = false;
00014 
00015         int numevents = m_events.size();
00016         for (vector<CValue*>::iterator i=m_events.end(); !(i==m_events.begin());)
00017         {
00018                 i--;
00019                 if ((*i)->GetNumber() == 0.0f)
00020                 {
00021                         int ka=0;
00022                         bNegativeEvent = true;
00023                 } else
00024                 {
00025                         bPositiveEvent = true;
00026                 }
00027                 (*i)->Release();
00028 
00029                 m_events.pop_back();
00030         }
00031 
00032         // if at least 1 positive event, return false
00033         
00034         return !bPositiveEvent && bNegativeEvent;
00035 }

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