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

SCA_GroupActuator.cpp

Go to the documentation of this file.
00001 
00007 
00008 #include "SCA_GroupActuator.h"
00009 #include <iostream>
00010 
00011 
00012 SCA_GroupActuator::SCA_GroupActuator(SCA_IObject* gameobj, 
00013                                                                    int mode,
00014                                                                    int frame1,
00015                                                                    int frame2,
00016                                                                    void *key,
00017                                                                    void *prop,
00018                                                                    PyTypeObject* T)
00019 : SCA_IActuator(gameobj, T)

00020 {
00021 
00022         /* This makes me wonder whether we shouldn't split this up into several  */
00023         /* actuators, and then group the 'normal' and 'group' versions.          */
00024         m_playMode = mode;
00025         switch (m_playMode) {
00026         case KX_ACT_GROUP_PLAY:
00027         case KX_ACT_GROUP_PINGPONG:
00028         case KX_ACT_GROUP_FLIPPER:
00029         case KX_ACT_GROUP_LOOPSTOP:
00030         case KX_ACT_GROUP_LOOPEND:
00031                 m_startFrame  = frame1;
00032                 m_stopFrame   = frame2;
00033                 m_frameNumber = -1;
00034                 m_key         = NULL;
00035                 m_property    = NULL;
00036                 break;
00037         case KX_ACT_GROUP_SETKEY:
00038                 m_startFrame  = -1;
00039                 m_stopFrame   = -1;
00040                 m_frameNumber = frame1;
00041                 m_key         = key;
00042                 m_property    = NULL;
00043                 break;
00044         case KX_ACT_GROUP_PROPERTY:
00045                 m_startFrame  = -1;
00046                 m_stopFrame   = -1;
00047                 m_frameNumber = -1;
00048                 m_key         = NULL;
00049                 m_property    = prop;
00050         default:
00051                 ; /* flag error here */
00052         }
00053 }
00054 
00055 SCA_GroupActuator::~SCA_GroupActuator()

00056 {
00057 
00058 }
00059 
00060 bool SCA_GroupActuator::Update(double curtime,double deltatime)

00061 {
00062         bool result = false;
00063 
00064         bool bNegativeEvent = IsNegativeEvent();
00065         
00066         if (bNegativeEvent)
00067                 return false;
00068 
00069         //cout << "\n Group!";
00070 
00071         return result;
00072 }

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