cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

gm_newp.h

Go to the documentation of this file.
00001 #pragma once
00002 #ifndef __NEW_P__
00003 #define __NEW_P__
00004 //
00005 //#include "gv_delay.h"
00006 
00007 //#define CC_DETAIL     (1)
00008 //#define CC_COUNT      (13*CC_DETAIL)
00009 
00014 class Newip
00015 {
00016 public:
00017         Newip();
00018         ~Newip();
00019         float fPrevGap;
00020         float fEndGap;
00021         bool bModeBreak;
00022         void check(float& from, float& to);
00023         bool Setup(float from, float to, float time);
00024         bool Interpolate(float deltaTime);
00025         float GetValue(void);
00026         float GetTarget(void) { return _target; };
00027         float _remainingTime;
00028         float GetPercent(void);
00029 private:
00030         float _value;
00031         float _target;
00032 
00033         float _totalTime;
00034         float _speed;
00035         float _acceleration;
00036 public:
00037         float GetTotalTime(void) { return _totalTime; }
00038         float m_fOldTime;
00039         float GetSpeed(void);
00040         void SetSpeed(float fspeed);
00041         float GetAccel(void);
00042         bool bDebugFlag;
00043         float _dist;
00044         float _oldspeed;
00045         float m_fbbshow;
00046 };
00047 
00048 
00049 /*
00050 */
00051 
00052 
00053 /*
00054 */
00055 
00056 class CNewP
00057 {
00058 public:
00059         CNewP(void);
00060         ~CNewP(void);
00061         float m_fTotalTime;
00062         float m_fLastInterp;
00063         float m_fInterValue;
00064         float m_fStartValue;
00065         float Update(void);
00066         //Timer m_Timer;
00067         float m_fEndValue;
00068         int SetValue(float fStart, float fEnd);
00069         void SetTotalTime(float fTime);
00070         int m_iPlayMode;
00071         int Start(void);
00072         int Stop(void);
00073         bool IsStop(void);
00074         float m_fCurrRad;
00075         float m_fCurrRadAmount;
00076         float m_fCurrRadAmountOld;
00077         float m_fCurrRadDelta;
00078         
00079         int Reset(void);
00080 
00081         float GetOneRad(void) const;
00082         float m_fConstEnd;
00083         float m_fStartDelay;
00084         gv_DELAY m_fDelay;
00085         bool m_bBackLashing;
00086         float m_fOldTime;
00087         float m_fAccel;
00088         float m_fV;
00089         bool bDebugFlag;
00090         Newip vvv;
00091         float GetSpeed(void);
00092         bool m_bEndClear;
00093 };
00094 
00095 #endif
00096 
00097 

Copyright(C) gvSystem & GamePlus All Rights Reserved.