- Cal3D 0.9 API Reference - |
00001 //****************************************************************************// 00002 // animation_action.h // 00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger // 00004 //****************************************************************************// 00005 // This library is free software; you can redistribute it and/or modify it // 00006 // under the terms of the GNU Lesser General Public License as published by // 00007 // the Free Software Foundation; either version 2.1 of the License, or (at // 00008 // your option) any later version. // 00009 //****************************************************************************// 00010 00011 #ifndef CAL_ANIMATION_ACTION_H 00012 #define CAL_ANIMATION_ACTION_H 00013 00014 //****************************************************************************// 00015 // Includes // 00016 //****************************************************************************// 00017 00018 #include "cal3d/global.h" 00019 #include "cal3d/animation.h" 00020 00021 //****************************************************************************// 00022 // Forward declarations // 00023 //****************************************************************************// 00024 00025 class CalCoreAnimation; 00026 00027 //****************************************************************************// 00028 // Class declaration // 00029 //****************************************************************************// 00030 00031 /*****************************************************************************/ 00035 class CAL3D_API CalAnimationAction : public CalAnimation 00036 { 00037 // member variables 00038 protected: 00039 float m_delayIn; 00040 float m_delayOut; 00041 float m_delayTarget; 00042 float m_weightTarget; 00043 00044 // constructor/destructor 00045 public: 00046 CalAnimationAction(); 00047 virtual ~CalAnimationAction(); 00048 00049 // member functions 00050 public: 00051 bool create(CalCoreAnimation *pCoreAnimation); 00052 void destroy(); 00053 bool execute(float delayIn, float delayOut, float weightTarget = 1.0f); 00054 bool update(float deltaTime); 00055 }; 00056 00057 #endif 00058 00059 //****************************************************************************//