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

 

 

lua_object_rect.h

Go to the documentation of this file.
00001 #pragma once
00002 #include "lua_sgLUA.h"
00003 
00004 
00005 class gv_OBJECT_RECT;
00006 class gv_DELAY;
00007 class gv_NUM;
00008 
00009 class gv_OBJECT_RECT_Entity
00010 {
00011         DECLARE_SCRIPT_LUA_CLASS(gv_OBJECT_RECT_Entity)
00012 
00013 public:
00014         bool m_bDelete; 
00015         gv_OBJECT_RECT_Entity(void);
00016         gv_OBJECT_RECT_Entity(lua_State* L);
00017         virtual ~gv_OBJECT_RECT_Entity(void);
00018 
00019         bool MustDelete(void);
00020 
00021         bool Spawn(const char* pFilename);
00022 
00023         void SetPosition(float* pos);
00024         void SetScale(float* scale);
00025 
00026         void Update(float fElapsed = 0.0f);
00027         void Render(void);
00028         
00029         // Script Functions
00030         // ¿ÜºÎ ÀÎÅÍÆäÀ̽º.
00031         int Spawn(lua_State* L);
00032         int SetPosition(lua_State* L);
00033         int SetScale(lua_State* L);
00034         int Rotate(lua_State* L);
00035         int GetAngle(lua_State* L);
00036         // End Script Functions
00037 
00038 private:
00039         bool LoadMesh(char* strFileName);
00040 public: 
00041         //
00042         bool bFromObjectRect; // true entity ¿¡¼­ »ý¼º. // false 
00043         gv_OBJECT_RECT* m_pObjectRect;//  dx_object_rect
00044         void SetObjectRect(void* ptr);
00045         //
00046         //
00047         int AddRect(char* szFileName, int x, int y, int w, int h, int iType, bool bcache=false);
00048         int Loop(int iValue=1,float fDelayTime=0.0f);
00049         int IsLooping(void);
00050         // ¾÷µ¥ÀÌÆ®/·»´õ ÁÖü¼³Á¤.
00051         int m_ControlOwner; // 0 : C++ ¸ÞÀÎ // 1 : ·ç¾Æ.
00052         
00053         SCRIPT_FUNCTION(AddRect)
00054         SCRIPT_FUNCTION(Loop)   
00055         SCRIPT_FUNCTION(StopLoop)               
00056         SCRIPT_FUNCTION(IsLooping)
00057         //
00058         SCRIPT_FUNCTION(SetVel)
00059         SCRIPT_FUNCTION(SetLoopVel)     
00060         SCRIPT_FUNCTION(ShowLock)
00061         SCRIPT_FUNCTION(SetFPS)
00062         // ÇöÀç´Â ¾ËÆÄ°ª¸¸ ÁöÁ¤ÇÑ´Ù. Â÷ÈÄ Ä÷¯°ªµµ ÁöÁ¤ÇÏ°Ô ÇÔ.
00063         SCRIPT_FUNCTION(SetCOLOR)
00064         SCRIPT_FUNCTION(SetControlOwner)        
00065         SCRIPT_FUNCTION(Update)         
00066         SCRIPT_FUNCTION(Render)         
00067         SCRIPT_FUNCTION(SetUV)  
00068         SCRIPT_FUNCTION(GetX)           
00069         SCRIPT_FUNCTION(GetY)                   
00070         SCRIPT_FUNCTION(GetXY)          
00071         SCRIPT_FUNCTION(GetW)                   
00072         SCRIPT_FUNCTION(GetH)
00073         SCRIPT_FUNCTION(SetXY)  
00074         SCRIPT_FUNCTION(isinRect)
00075         SCRIPT_FUNCTION(SHOW)   
00076         SCRIPT_FUNCTION(SetAniFrameRange)
00077         SCRIPT_FUNCTION(ButtonEnable)
00078         SCRIPT_FUNCTION(ButtonStatus)   
00079         SCRIPT_FUNCTION(GotoFrame)      
00080         SCRIPT_FUNCTION(GetObjPointer)  
00081         SCRIPT_FUNCTION(SetTargetLoop)
00082         SCRIPT_FUNCTION(SetLoopEndFirst)
00083         SCRIPT_FUNCTION(SetLoopCountDefault)    
00084         SCRIPT_FUNCTION(Charge)
00085         SCRIPT_FUNCTION(UnCharge)       
00086         SCRIPT_FUNCTION(IsShow)
00087 };
00088 
00089 
00090 
00091 

Copyright(C) gvSystem & GamePlus All Rights Reserved.