|
Public Types |
| enum | TweenType {
TWEEN_LINEAR,
TWEEN_ACCELERATE,
TWEEN_DECELERATE,
TWEEN_BOUNCE_BEGIN,
TWEEN_BOUNCE_END,
TWEEN_SPRING
} |
| enum | Effect {
no_effect,
diffuse_blink,
diffuse_shift,
glow_blink,
glow_shift,
rainbow,
wag,
bounce,
bob,
pulse,
spin,
vibrate
} |
| enum | EffectClock { CLOCK_TIMER,
CLOCK_BGM_TIME,
CLOCK_BGM_BEAT,
NUM_CLOCKS
} |
| enum | StretchType { fit_inside,
cover
} |
| enum | HorizAlign { align_left,
align_center,
align_right
} |
| enum | VertAlign { align_top,
align_middle,
align_bottom
} |
Public Member Functions |
| | Actor () |
| virtual | ~Actor () |
| virtual void | Reset () |
| void | LoadFromNode (const CString &sDir, const XNode *pNode) |
| void | Draw () |
| virtual bool | EarlyAbortDraw () |
| virtual void | BeginDraw () |
| virtual void | SetRenderStates () |
| virtual void | DrawPrimitives () |
| virtual void | EndDraw () |
| bool | IsFirstUpdate () const |
| virtual void | Update (float fDeltaTime) |
| void | UpdateTweening (float fDeltaTime) |
| void | CopyTweening (const Actor &from) |
| const CString & | GetName () const |
| const CString & | GetID () const |
| void | SetName (const CString &sName, const CString &sID="") |
| float | GetX () const |
| float | GetY () const |
| float | GetZ () const |
| float | GetDestX () |
| float | GetDestY () |
| float | GetDestZ () |
| void | SetX (float x) |
| void | SetY (float y) |
| void | SetZ (float z) |
| void | SetXY (float x, float y) |
| void | AddX (float x) |
| void | AddY (float y) |
| void | AddZ (float z) |
| float | GetUnzoomedWidth () |
| float | GetUnzoomedHeight () |
| float | GetZoomedWidth () |
| float | GetZoomedHeight () |
| void | SetWidth (float width) |
| void | SetHeight (float height) |
| void | SetBaseZoomX (float zoom) |
| void | SetBaseZoomY (float zoom) |
| void | SetBaseZoomZ (float zoom) |
| void | SetBaseZoom (const RageVector3 &zoom) |
| void | SetBaseRotationX (float rot) |
| void | SetBaseRotationY (float rot) |
| void | SetBaseRotationZ (float rot) |
| void | SetBaseRotation (const RageVector3 &rot) |
| float | GetZoom () |
| float | GetZoomX () |
| float | GetZoomY () |
| float | GetZoomZ () |
| void | SetZoom (float zoom) |
| void | SetZoomX (float zoom) |
| void | SetZoomY (float zoom) |
| void | SetZoomZ (float zoom) |
| void | ZoomToWidth (float zoom) |
| void | ZoomToHeight (float zoom) |
| float | GetRotationX () |
| float | GetRotationY () |
| float | GetRotationZ () |
| void | SetRotationX (float rot) |
| void | SetRotationY (float rot) |
| void | SetRotationZ (float rot) |
| void | AddRotationH (float rot) |
| void | AddRotationP (float rot) |
| void | AddRotationR (float rot) |
| float | GetCropLeft () |
| float | GetCropTop () |
| float | GetCropRight () |
| float | GetCropBottom () |
| void | SetCropLeft (float percent) |
| void | SetCropTop (float percent) |
| void | SetCropRight (float percent) |
| void | SetCropBottom (float percent) |
| void | SetFadeLeft (float percent) |
| void | SetFadeTop (float percent) |
| void | SetFadeRight (float percent) |
| void | SetFadeBottom (float percent) |
| void | SetGlobalDiffuseColor (RageColor c) |
| void | SetGlobalX (float x) |
| virtual void | SetDiffuse (RageColor c) |
| virtual void | SetDiffuseAlpha (float f) |
| void | SetDiffuseColor (RageColor c) |
| void | SetDiffuses (int i, RageColor c) |
| void | SetDiffuseUpperLeft (RageColor c) |
| void | SetDiffuseUpperRight (RageColor c) |
| void | SetDiffuseLowerLeft (RageColor c) |
| void | SetDiffuseLowerRight (RageColor c) |
| void | SetDiffuseTopEdge (RageColor c) |
| void | SetDiffuseRightEdge (RageColor c) |
| void | SetDiffuseBottomEdge (RageColor c) |
| void | SetDiffuseLeftEdge (RageColor c) |
| RageColor | GetDiffuse () |
| RageColor | GetDiffuses (int i) |
| void | SetGlow (RageColor c) |
| RageColor | GetGlow () |
| void | BeginTweening (float time, TweenType tt=TWEEN_LINEAR) |
| void | StopTweening () |
| void | Sleep (float time) |
| void | QueueCommand (const CString &sCommandName) |
| virtual void | FinishTweening () |
| virtual void | HurryTweening (float factor) |
| virtual float | GetTweenTimeLeft () const |
| TweenState & | DestTweenState () |
| void | SetLatestTween (TweenState ts) |
| void | ScaleToCover (const RectF &rect) |
| void | ScaleToFitInside (const RectF &rect) |
| void | ScaleTo (const RectF &rect, StretchType st) |
| void | StretchTo (const RectF &rect) |
| virtual void | SetHorizAlign (HorizAlign ha) |
| virtual void | SetHorizAlignString (const CString &s) |
| virtual void | SetVertAlign (VertAlign va) |
| virtual void | SetVertAlignString (const CString &s) |
| void | SetEffectNone () |
| Effect | GetEffect () |
| void | SetEffectColor1 (RageColor c) |
| void | SetEffectColor2 (RageColor c) |
| void | SetEffectPeriod (float fSecs) |
| void | SetEffectDelay (float fTime) |
| void | SetEffectOffset (float fPercent) |
| void | SetEffectClock (EffectClock c) |
| void | SetEffectClockString (const CString &s) |
| void | SetEffectMagnitude (RageVector3 vec) |
| void | SetEffectDiffuseBlink (float fEffectPeriodSeconds=1.0f, RageColor c1=RageColor(0.5f, 0.5f, 0.5f, 1), RageColor c2=RageColor(1, 1, 1, 1)) |
| void | SetEffectDiffuseShift (float fEffectPeriodSeconds=1.f, RageColor c1=RageColor(0, 0, 0, 1), RageColor c2=RageColor(1, 1, 1, 1)) |
| void | SetEffectGlowBlink (float fEffectPeriodSeconds=1.f, RageColor c1=RageColor(1, 1, 1, 0.2f), RageColor c2=RageColor(1, 1, 1, 0.8f)) |
| void | SetEffectGlowShift (float fEffectPeriodSeconds=1.0f, RageColor c1=RageColor(1, 1, 1, 0.2f), RageColor c2=RageColor(1, 1, 1, 0.8f)) |
| void | SetEffectRainbow (float fEffectPeriodSeconds=2.0f) |
| void | SetEffectWag (float fPeriod=2.f, RageVector3 vect=RageVector3(0, 0, 20)) |
| void | SetEffectBounce (float fPeriod=2.f, RageVector3 vect=RageVector3(0, 0, 20)) |
| void | SetEffectBob (float fPeriod=2.f, RageVector3 vect=RageVector3(0, 0, 20)) |
| void | SetEffectPulse (float fPeriod=2.f, float fMinZoom=0.5f, float fMaxZoom=1.f) |
| void | SetEffectSpin (RageVector3 vect=RageVector3(0, 0, 180)) |
| void | SetEffectVibrate (RageVector3 vect=RageVector3(10, 10, 10)) |
| bool | GetHidden () const |
| void | SetHidden (bool b) |
| void | SetShadowLength (float fLength) |
| void | SetHibernate (float fSecs) |
| void | SetDrawOrder (int iOrder) |
| int | GetDrawOrder () const |
| virtual void | EnableAnimation (bool b) |
| void | StartAnimating () |
| void | StopAnimating () |
| void | SetBlendMode (BlendMode mode) |
| void | SetBlendModeString (const CString &s) |
| void | SetTextureWrapping (bool b) |
| void | SetClearZBuffer (bool b) |
| void | SetUseZBuffer (bool b) |
| virtual void | SetZTestMode (ZTestMode mode) |
| void | SetZTestModeString (const CString &s) |
| virtual void | SetZWrite (bool b) |
| virtual void | SetCullMode (CullMode mode) |
| void | SetCullModeString (const CString &s) |
| virtual void | PushSelf (lua_State *L) |
| virtual void | PlayCommand (const CString &sCommandName) |
| virtual void | RunCommands (const ActorCommands &cmds) |
| void | RunCommands (const apActorCommands &cmds) |
| virtual int | GetNumStates () const |
| virtual void | SetState (int iNewState) |
| virtual float | GetAnimationLengthSeconds () const |
| virtual void | SetSecondsIntoAnimation (float fSeconds) |
| virtual void | GainFocus (float fRate, bool bRewindMovie, bool bLoop) |
| virtual void | LoseFocus () |
Static Public Member Functions |
| void | SetBGMTime (float fTime, float fBeat) |
| float | GetCommandsLengthSeconds (const ActorCommands &cmds) |
| float | GetCommandsLengthSeconds (const apActorCommands &cmds) |
Public Attributes |
| CString | m_sName |
| CString | m_sID |
Protected Member Functions |
| TweenState & | LatestTween () |
| float | GetEffectDeltaTime () const |
Protected Attributes |
| RageVector3 | m_baseRotation |
| RageVector3 | m_baseScale |
| RageVector2 | m_size |
| TweenState | m_current |
| TweenState | m_start |
| deque< TweenStateAndInfo > | m_Tweens |
| TweenState | m_tempState |
| TweenState * | m_pTempState |
| bool | m_bFirstUpdate |
| HorizAlign | m_HorizAlign |
| VertAlign | m_VertAlign |
| Effect | m_Effect |
| float | m_fSecsIntoEffect |
| float | m_fEffectDelta |
| float | m_fEffectPeriodSeconds |
| float | m_fEffectDelay |
| float | m_fEffectOffset |
| EffectClock | m_EffectClock |
| RageColor | m_effectColor1 |
| RageColor | m_effectColor2 |
| RageVector3 | m_vEffectMagnitude |
| bool | m_bHidden |
| float | m_fHibernateSecondsLeft |
| float | m_fShadowLength |
| bool | m_bIsAnimating |
| int | m_iDrawOrder |
| bool | m_bTextureWrapping |
| BlendMode | m_BlendMode |
| bool | m_bClearZBuffer |
| ZTestMode | m_ZTestMode |
| bool | m_bZWrite |
| CullMode | m_CullMode |
| map< CString, apActorCommands > | m_mapNameToCommands |
Static Protected Attributes |
| float | g_fCurrentBGMTime = 0 Actor::g_fCurrentBGMBeat |
| float | g_fCurrentBGMBeat |