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

 

 

gv_object_rect.h

Go to the documentation of this file.
00001 /******************************************************
00002         gv System engine 3D/2D
00003 *******************************************************/
00004 
00005 #pragma once
00006 //
00007 class gm_rect_2d;
00008 class gm_texture;
00009 
00010 //
00014 class gv_OBJECT_RECT
00015 {
00016 private:
00018         bool m_bShow;
00019 public:
00020         //
00022         //
00023         gm_rect_2d* m_pRect;    
00025         bool m_bActAnimation;
00026 
00028         char m_szid[128];
00030         gm_texture* m_pTexture;
00031         //
00032         geArray<gv_OBJECT_RECT*> m_pList;
00033         //
00034         float m_alpharef;
00035         float m_alpharef_current;
00036         float m_alpharef_max;
00037         //ShowLock=·çǪ ¶Ç´Â ¾×¼Ç¹ß»ý½Ã¿¡¸¸ ·»´õ¸µµÇ´Â Ç÷¡±×ÀÓ.
00038         bool m_bShowLock;
00039 
00042         XVECTOR2 velocityLoop;
00043 
00045         XVECTOR2 velocity;
00046 
00048         int m_iFadeAction;
00050         int m_iSound;
00052         bool m_bSoundPlayed;
00054         float m_fDelaySound;
00056         bool m_bIsLoopEndSoundOff;      
00058         gv_OBJECT_RECT* m_pTarget;
00059 
00061         int m_nReservedLooping;
00063         bool m_bBlinking;
00065         int nblinking_loop;
00067         float m_fTimeShowBlinking;
00069         float m_fTimeHideBlinking;
00070         //
00071         //
00072         //
00073 //      simple_lamp* m_pLamp;
00074 //
00076         float m_fTimeBlinking;
00077 
00078         //
00081         gv_OBJECT_RECT* m_pParent;
00082         gv_OBJECT_RECT* m_pChild;
00084         bool m_copy;
00086         int m_iReserved;        
00087         //
00089         gv_OBJECT_RECT(void);
00091         ~gv_OBJECT_RECT(void);
00092 
00099         int Loop(int iValue=1,float fDelayTime=0.0f,bool bStartRandomFrame=false);
00102         int LoopRef(int iValue=1,float fDelayTime=0.0f);        
00103 
00105         int Render(void);
00107         int Render3(void);
00110         int AddTexture(char* szFileName, int x, int y, int nWidth, int nHeight, int iValue);
00111 
00115         int Render2(void);
00116 
00117 
00126         int AddRect(char* szFileName, int x, int y, int w, int h, int iType, bool bcache=false);
00127         int AddBigTexture(char* szFileName, int x, int y, bool bcache=false);
00128         //
00131         int GotoFrame(int iFrame);
00140         int Action(int iAction);
00141 
00144         int Update(void);
00145 
00148         int IsLooping(void);
00150         int LoadObjectConfig(char* szConfigFile);
00151         int FadeAction(int iFade);
00153         void* Clone(void);
00154 
00155         //
00156         int AfterLoopEnd(int iAct, void* pVoid);
00159         int StopLoop(void);
00160 
00162         int StopLoopNow(void);
00163 
00165         //
00166         int SHOW(bool bShow, float fDelay=0.0f);
00167 
00169         int isShow(void);
00171         int SHOW_TIMELIMIT(bool bShow, float fLimit=1.0f);
00172         //
00173         int IsShow(void);
00174         
00184         int SetBlinking(bool bblink, float fTimeShow, float fTimeHide, int nloop=-1);
00185 
00187         int SetAniFrameRange(int na, int nb);
00189         int DoScript(char* szScriptFileName);
00191         int DoScriptLua(char* szLuaFileName);
00192 
00194         bool IsName(const char* szName);
00195 
00197         void SetUV(float u1,float v1,float u2,float v2);
00198 
00200         int m_nLoopCountDefault;
00201 
00203         void GoTo(float x,float y,float fTime);
00204 
00206         bool IsinRect(int x1, int y1, int x2, int y2);
00207         
00210         int m_bisLooped;
00211 
00213         bool m_bisBigTexture;
00215         void SoundStop(void);
00216         bool m_bUpdateable;
00217 
00218 
00220         button_one  m_Button;
00222         void SetLoopEndFirst(bool bflag=true);
00223 
00224         //
00225 //      geArray<gvStringc> m_action_list;
00228         void Charge(void);
00231         void UnCharge(void);
00232 
00236         void SetFPS(float ffps);
00237 };
00238 
00239 
00240 

Copyright(C) gvSystem & GamePlus All Rights Reserved.