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 Class Reference

Game Object ver 0.1 todo:. More...

#include <gv_object_rect.h>

Collaboration diagram for gv_OBJECT_RECT:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 gv_OBJECT_RECT (void)
 ~gv_OBJECT_RECT (void)
int Loop (int iValue=1, float fDelayTime=0.0f, bool bStartRandomFrame=false)
 loop count setting.
int LoopRef (int iValue=1, float fDelayTime=0.0f)
int Render (void)
 rendering.
int Render3 (void)
 not use. for debugging wireframe render.
int AddTexture (char *szFileName, int x, int y, int nWidth, int nHeight, int iValue)
 called from AddRect.
int Render2 (void)
 Rect ¾øÀÌ ÅØ½ºÃÄ ¹ÙÀεù¸¸.. Â÷ÈÄ¿¡ üũ.
int AddRect (char *szFileName, int x, int y, int w, int h, int iType, bool bcache=false)
 object texture create and setting.
int AddBigTexture (char *szFileName, int x, int y, bool bcache=false)
int GotoFrame (int iFrame)
 setting render image frame.
int Action (int iAction)
 The Action function !!not yet.
int Update (void)
 update object. must be called.
int IsLooping (void)
 is looping
int LoadObjectConfig (char *szConfigFile)
 object config file load.
int FadeAction (int iFade)
void * Clone (void)
 copy object.
int AfterLoopEnd (int iAct, void *pVoid)
int StopLoop (void)
 Stop looping.
int StopLoopNow (void)
 Stop looping now.
int SHOW (bool bShow, float fDelay=0.0f)
 show or hide object.
int isShow (void)
 is show
int SHOW_TIMELIMIT (bool bShow, float fLimit=1.0f)
int IsShow (void)
int SetBlinking (bool bblink, float fTimeShow, float fTimeHide, int nloop=-1)
 The SetBlinking function.
int SetAniFrameRange (int na, int nb)
 set animation frame range.
int DoScript (char *szScriptFileName)
 custum script exec.
int DoScriptLua (char *szLuaFileName)
 custum lua module
bool IsName (const char *szName)
 is same name
void SetUV (float u1, float v1, float u2, float v2)
 texture uv coord.
void GoTo (float x, float y, float fTime)
bool IsinRect (int x1, int y1, int x2, int y2)
void SoundStop (void)
 if sound playing stop sound.
void SetLoopEndFirst (bool bflag=true)
void Charge (void)
 heap memory compress byte. result : texture data remove from video ram.
void UnCharge (void)
 heap memory compress byte. result : texture data remove from video ram.
void SetFPS (float ffps)
 set fps set animation speed. if not animation texture then ..nothing.

Public Attributes

gm_rect_2dm_pRect
 2d rectangle.
bool m_bActAnimation
char m_szid [128]
 object name
gm_texturem_pTexture
 texture pointer.
geArray< gv_OBJECT_RECT * > m_pList
float m_alpharef
float m_alpharef_current
float m_alpharef_max
bool m_bShowLock
XVECTOR2 velocityLoop
 velocity value. only effect looping.
XVECTOR2 velocity
 velocity value.
int m_iFadeAction
 fade in or out
int m_iSound
 wave sound handle.
bool m_bSoundPlayed
float m_fDelaySound
 delay before start sound playing.
bool m_bIsLoopEndSoundOff
 after looping ended sound off flag.
gv_OBJECT_RECTm_pTarget
 after looping ended
int m_nReservedLooping
 default looping count.
bool m_bBlinking
 blinking variable flag.
int nblinking_loop
 blinking loop count.
float m_fTimeShowBlinking
 blinking show time.
float m_fTimeHideBlinking
 blinking hide time.
float m_fTimeBlinking
gv_OBJECT_RECTm_pParent
 for tree node. will be using scene graph. only 2d layer.
gv_OBJECT_RECTm_pChild
bool m_copy
 this object is copy.
int m_iReserved
int m_nLoopCountDefault
int m_bisLooped
 is loop animation ? animation checking.
bool m_bisBigTexture
 is LTX loaded ?
bool m_bUpdateable
button_one m_Button
 button flag.

Private Attributes

bool m_bShow
 Show/Hide Flag.

Detailed Description

Game Object ver 0.1 todo:.

Definition at line 12 of file gv_object_rect.h.


Constructor & Destructor Documentation

gv_OBJECT_RECT::gv_OBJECT_RECT ( void   ) 

gv_OBJECT_RECT::~gv_OBJECT_RECT ( void   ) 


Member Function Documentation

int gv_OBJECT_RECT::Loop ( int  iValue = 1,
float  fDelayTime = 0.0f,
bool  bStartRandomFrame = false 
)

loop count setting.

Parameters:
iValue,: loop count. if iValue -1 then infinite looping.
fDelayTime,: loopping start delay time.
bStartRandomFrame,: loopping random start first frame index.
Returns:
if animation texture and start 1 else return 0

int gv_OBJECT_RECT::LoopRef ( int  iValue = 1,
float  fDelayTime = 0.0f 
)

int gv_OBJECT_RECT::Render ( void   ) 

rendering.

int gv_OBJECT_RECT::Render3 ( void   ) 

not use. for debugging wireframe render.

int gv_OBJECT_RECT::AddTexture ( char *  szFileName,
int  x,
int  y,
int  nWidth,
int  nHeight,
int  iValue 
)

called from AddRect.

int gv_OBJECT_RECT::Render2 ( void   ) 

Rect ¾øÀÌ ÅØ½ºÃÄ ¹ÙÀεù¸¸.. Â÷ÈÄ¿¡ üũ.

int gv_OBJECT_RECT::AddRect ( char *  szFileName,
int  x,
int  y,
int  w,
int  h,
int  iType,
bool  bcache = false 
)

object texture create and setting.

Parameters:
szFileName,: texture filename.
x,: x coord.
y,: y coord.
w,: width size. if nWidth is -1
h,: height size.
iType,: not use.
bcache,: compress flag.

int gv_OBJECT_RECT::AddBigTexture ( char *  szFileName,
int  x,
int  y,
bool  bcache = false 
)

int gv_OBJECT_RECT::GotoFrame ( int  iFrame  ) 

setting render image frame.

int gv_OBJECT_RECT::Action ( int  iAction  ) 

The Action function !!not yet.

Parameters:
iAction a parameter of type int
Returns:
int

int gv_OBJECT_RECT::Update ( void   ) 

update object. must be called.

int gv_OBJECT_RECT::IsLooping ( void   ) 

is looping

Returns:
returns 1 if looping and 0 if it is not

int gv_OBJECT_RECT::LoadObjectConfig ( char *  szConfigFile  ) 

object config file load.

int gv_OBJECT_RECT::FadeAction ( int  iFade  ) 

void* gv_OBJECT_RECT::Clone ( void   ) 

copy object.

int gv_OBJECT_RECT::AfterLoopEnd ( int  iAct,
void *  pVoid 
)

int gv_OBJECT_RECT::StopLoop ( void   ) 

Stop looping.

int gv_OBJECT_RECT::StopLoopNow ( void   ) 

Stop looping now.

int gv_OBJECT_RECT::SHOW ( bool  bShow,
float  fDelay = 0.0f 
)

show or hide object.

int gv_OBJECT_RECT::isShow ( void   ) 

is show

int gv_OBJECT_RECT::SHOW_TIMELIMIT ( bool  bShow,
float  fLimit = 1.0f 
)

int gv_OBJECT_RECT::IsShow ( void   ) 

int gv_OBJECT_RECT::SetBlinking ( bool  bblink,
float  fTimeShow,
float  fTimeHide,
int  nloop = -1 
)

The SetBlinking function.

Parameters:
bblink a parameter of type bool. blinking flag true or false.
fTimeShow a parameter of type float. blinking show on time.
fTimeHide a parameter of type float. blinking show off time.
nloop a parameter of type int. blinking count. if -1 infinite looping.
Returns:
int

int gv_OBJECT_RECT::SetAniFrameRange ( int  na,
int  nb 
)

set animation frame range.

int gv_OBJECT_RECT::DoScript ( char *  szScriptFileName  ) 

custum script exec.

int gv_OBJECT_RECT::DoScriptLua ( char *  szLuaFileName  ) 

custum lua module

bool gv_OBJECT_RECT::IsName ( const char *  szName  ) 

is same name

void gv_OBJECT_RECT::SetUV ( float  u1,
float  v1,
float  u2,
float  v2 
)

texture uv coord.

void gv_OBJECT_RECT::GoTo ( float  x,
float  y,
float  fTime 
)

bool gv_OBJECT_RECT::IsinRect ( int  x1,
int  y1,
int  x2,
int  y2 
)

void gv_OBJECT_RECT::SoundStop ( void   ) 

if sound playing stop sound.

void gv_OBJECT_RECT::SetLoopEndFirst ( bool  bflag = true  ) 

void gv_OBJECT_RECT::Charge ( void   ) 

heap memory compress byte. result : texture data remove from video ram.

void gv_OBJECT_RECT::UnCharge ( void   ) 

heap memory compress byte. result : texture data remove from video ram.

void gv_OBJECT_RECT::SetFPS ( float  ffps  ) 

set fps set animation speed. if not animation texture then ..nothing.


Member Data Documentation

bool gv_OBJECT_RECT::m_bShow [private]

Show/Hide Flag.

Definition at line 16 of file gv_object_rect.h.

2d rectangle.

Definition at line 21 of file gv_object_rect.h.

Definition at line 23 of file gv_object_rect.h.

object name

Definition at line 26 of file gv_object_rect.h.

texture pointer.

Definition at line 28 of file gv_object_rect.h.

Definition at line 30 of file gv_object_rect.h.

Definition at line 32 of file gv_object_rect.h.

Definition at line 33 of file gv_object_rect.h.

Definition at line 34 of file gv_object_rect.h.

Definition at line 36 of file gv_object_rect.h.

velocity value. only effect looping.

Definition at line 39 of file gv_object_rect.h.

velocity value.

Definition at line 42 of file gv_object_rect.h.

fade in or out

Definition at line 45 of file gv_object_rect.h.

wave sound handle.

Definition at line 47 of file gv_object_rect.h.

Definition at line 49 of file gv_object_rect.h.

delay before start sound playing.

Definition at line 51 of file gv_object_rect.h.

after looping ended sound off flag.

Definition at line 53 of file gv_object_rect.h.

after looping ended

Definition at line 55 of file gv_object_rect.h.

default looping count.

Definition at line 58 of file gv_object_rect.h.

blinking variable flag.

Definition at line 60 of file gv_object_rect.h.

blinking loop count.

Definition at line 62 of file gv_object_rect.h.

blinking show time.

Definition at line 64 of file gv_object_rect.h.

blinking hide time.

Definition at line 66 of file gv_object_rect.h.

Definition at line 73 of file gv_object_rect.h.

for tree node. will be using scene graph. only 2d layer.

Definition at line 77 of file gv_object_rect.h.

this object is copy.

Definition at line 80 of file gv_object_rect.h.

Definition at line 82 of file gv_object_rect.h.

Definition at line 176 of file gv_object_rect.h.

is loop animation ? animation checking.

Definition at line 185 of file gv_object_rect.h.

is LTX loaded ?

Definition at line 188 of file gv_object_rect.h.

Definition at line 191 of file gv_object_rect.h.

button flag.

Definition at line 195 of file gv_object_rect.h.


The documentation for this class was generated from the following file:

Copyright(C) gvSystem & GamePlus All Rights Reserved.