libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
evmu_ibehavior.h File Reference

Go to the source code of this file.

Data Structures

struct  EvmuIBehaviorClass
 

Macros

Type System

Type UUID and cast operators

#define EVMU_IBEHAVIOR_TYPE   (GBL_TYPEID(EvmuIBehavior))
 
#define EVMU_IBEHAVIOR(self)   (GBL_CAST(EvmuIBehavior, self))
 
#define EVMU_IBEHAVIOR_CLASS(klass)   (GBL_CLASS_CAST(EvmuIBehavior, klass))
 
#define EVMU_IBEHAVIOR_GET_CLASS(self)   (GBL_CLASSOF(EvmuIBehavior, self))
 

Functions

GblType EvmuIBehavior_type (void)
 
EvmuEmulatorEvmuIBehavior_emulator (const EvmuIBehavior *pSelf)
 
EVMU_RESULT EvmuIBehavior_reset (EvmuIBehavior *pSelf)
 
EVMU_RESULT EvmuIBehavior_update (EvmuIBehavior *pSelf, EvmuTicks ticks)
 
EVMU_RESULT EvmuIBehavior_saveState (EvmuIBehavior *pSelf, GblStringBuffer *pString)
 
EVMU_RESULT EvmuIBehavior_loadState (EvmuIBehavior *pSelf, const GblStringBuffer *pString)
 

Detailed Description

EvmuIBehavior interface for emulated entities.

Todo:
  • static typeinfo
Author
2023 Falco Girgis

Definition in file evmu_ibehavior.h.

Macro Definition Documentation

◆ EVMU_IBEHAVIOR

#define EVMU_IBEHAVIOR (   self)    (GBL_CAST(EvmuIBehavior, self))

Casts a GblInstance to EvmuIBehavior.

Definition at line 21 of file evmu_ibehavior.h.

◆ EVMU_IBEHAVIOR_CLASS

#define EVMU_IBEHAVIOR_CLASS (   klass)    (GBL_CLASS_CAST(EvmuIBehavior, klass))

Casts a GblClass to EvmuIBehaviorClass.

Definition at line 22 of file evmu_ibehavior.h.

◆ EVMU_IBEHAVIOR_GET_CLASS

#define EVMU_IBEHAVIOR_GET_CLASS (   self)    (GBL_CLASSOF(EvmuIBehavior, self))

Gets an EvmuIBehaviorClass from a GblInstance

Definition at line 23 of file evmu_ibehavior.h.

◆ EVMU_IBEHAVIOR_TYPE

#define EVMU_IBEHAVIOR_TYPE   (GBL_TYPEID(EvmuIBehavior))

Type UUID for EvmuIBehavior.

Definition at line 20 of file evmu_ibehavior.h.

Function Documentation

◆ EvmuIBehavior_emulator()

EvmuEmulator * EvmuIBehavior_emulator ( const EvmuIBehavior pSelf)

Returns the root EvmuBehavior object associated with the given behavior.

◆ EvmuIBehavior_type()

GblType EvmuIBehavior_type ( void  )

Returns the GblType UUID associated with EvmuIBehavior.