|
JubeatPlus 3.9.11
|
The abstract base renderer for a play session. More...
#include <MainGameRenderer.h>


Instance Methods | |
| (instancetype) | - init |
| Initialises the renderer, clearing its texture-change, good-job image, and score-backup state. | |
| (void) | - loadTexure:artwork:index: |
| Loads the textures for a play session. | |
| (void) | - releaseTexture |
| Releases the session textures. | |
| (double) | - durationOfReadyGo |
| The ready-go countdown duration, in seconds. | |
| (void) | - startPlay |
| Notifies the renderer that play has started. | |
| (void) | - endResult |
| Notifies the renderer that the result screen should begin. | |
| (double) | - buttonAreaOffset |
| The vertical offset of the button area, in points. | |
| (double) | - gameAreaOffset |
| The vertical offset of the game area, in points. | |
| (void) | - draw |
| Draws one frame. | |
| (void) | - drawDebugText:pos:alpha: |
| Draws debug text at a point. | |
| (CGRect) | - getMusicBarRect |
| The rectangle of the result-screen music bar. | |
| (void) | - backupScoreData |
Snapshots the sequence's current score into replayBackupScore for replay, and marks the score backed up. | |
| (void) | - replaySelect |
| Notifies the renderer that a replay was selected. | |
| (void) | - replayEnd |
| Notifies the renderer that a replay ended. | |
Protected Attributes | |
| float | shutterOpen |
| The shutter-open animation progress. | |
| unsigned int | lastCombo |
| The combo count as of the last frame. | |
| unsigned int | comboEffectFrame |
| The combo burst animation frame. | |
| unsigned int | comboCutFrame |
| The combo cut-in animation frame. | |
| unsigned int | scoreDisplay |
| The score currently shown, tweened up. | |
| unsigned int | partnerScoreDisplay |
| The partner's shown score, tweened up. | |
| int | markerState [kMainGameGridPanelCount] |
| Per-panel marker animation state. | |
| MainGameHoldState | holdState [kMainGameGridPanelCount] |
| Per-panel hold-marker state. | |
| HoldMarkerRender * | holdMarkerRender |
| The hold-marker sub-renderer. | |
| unsigned int | _state |
| The high-level render state. | |
Properties | |
| RendererConf * | rendererConf |
| The renderer configuration for the current session. | |
| unsigned int | state |
| The high-level render state. | |
| unsigned int | subState |
The render sub-state within the current state . | |
| BOOL | showCombo |
| Whether the combo counter is shown. | |
| BOOL | isNewRecord |
| Whether the session set a new record. | |
| unsigned int | scoreRecord |
| The previous best score record for this tune. | |
| int | btnPress |
| The currently pressed button bitmask. | |
| int | btnDown |
| The currently held-down button bitmask. | |
| BOOL | partnerFinished |
| Whether the session partner has finished. | |
| unsigned int | partnerScore |
| The partner's current score. | |
| unsigned int | partnerFinalBonus |
| The partner's final bonus. | |
| BOOL | partnerFullcombo |
| Whether the partner achieved a full combo. | |
| Sequence * | sequence |
| The note sequence being played. | |
| EAGLView * | eaglView |
| The GL view this renderer draws into. | |
| int | ghostPress |
| The ghost-play button bitmask. | |
| UIImageView * | goodJobImage |
| The good-job overlay image view. | |
| float | goodJobAlphaMax |
| The peak opacity of the good-job overlay. | |
| BOOL | isSession |
| Whether this is a session (versus) play. | |
| BOOL | isConnected |
| Whether the session partner is connected. | |
| BOOL | isCustom |
| Whether this is a custom (edit) sequence. | |
| BOOL | isDownload |
| Whether the tune was downloaded. | |
| BOOL | isTextureChange |
| Whether a texture change is pending. | |
| BOOL | hasMusic |
| Whether the session has music. | |
| BOOL | replayPlaying |
| Whether a replay is playing. | |
| BOOL | scoreBackup |
| Whether the score has been backed up for replay. | |
| BOOL | isEndState |
| Whether the session has reached its end sub-state. | |
| unsigned int | endButtonID |
| The button identifier for the end action. | |
| unsigned int | evaluateButtonID |
| The button identifier for the evaluate action. | |
| unsigned int | goodJobButtonID |
| The button identifier for the good-job action. | |
| CGPoint | goodJobPosition |
| The position of the good-job overlay. | |
| int | buttonMarginForScreen40 |
| The default button margin used by the 480-point-tall phone layout. | |
| int | upperBgHeight40 |
| The default upper-background height used by the 480-point-tall phone layout. | |
| unsigned int | twitterSendButtonID |
| The button identifier for the tweet-send action. | |
| CGPoint | twitterBtnPosition |
| The position of the tweet-send button. | |
| unsigned int | storeMoveButtonID |
| The button identifier for the store-move action. | |
| CGPoint | storeMoveBtnPosition |
| The position of the store-move button. | |
| ScoreData | replayBackupScore |
The score snapshot captured for replay by -backupScoreData . | |
The abstract base renderer for a play session.
| - (void) backupScoreData |
Snapshots the sequence's current score into replayBackupScore for replay, and marks the score backed up.
| - (double) buttonAreaOffset |
The vertical offset of the button area, in points.
The base returns 0.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, and MainGameRendererPadRpl.
| - (void) draw |
Draws one frame.
The base implementation does nothing; subclasses render the play field.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) drawDebugText: | (nullable const char *) | text | |
| pos: | (CGPoint) | pos | |
| alpha: | (float) | alpha |
Draws debug text at a point.
The base implementation does nothing.
| text | The C string to draw. |
| pos | The position to draw it at. |
| alpha | The opacity. |
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (double) durationOfReadyGo |
The ready-go countdown duration, in seconds.
The base returns 0.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) endResult |
Notifies the renderer that the result screen should begin.
The base does nothing.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (double) gameAreaOffset |
The vertical offset of the game area, in points.
The base returns 0.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, and MainGameRendererPadRpl.
| - (CGRect) getMusicBarRect |
The rectangle of the result-screen music bar.
The base returns CGRectZero .
Reimplemented in MainGameRendererPadKnt.
| - (instancetype) init |
Initialises the renderer, clearing its texture-change, good-job image, and score-backup state.
nil. Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) loadTexure: | (nullable RendererConf *) | conf | |
| artwork: | (nullable UIImage *) | artwork | |
| index: | (nullable UIImage *) | index |
Loads the textures for a play session.
The base implementation does nothing; each concrete subclass loads the idiom- and theme-appropriate textures.
| conf | The renderer configuration describing the tune, difficulty, and marker. |
| artwork | The jacket artwork image. |
| index | An additional texture image the subclass composites in. |
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) releaseTexture |
Releases the session textures.
The base implementation does nothing.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) replayEnd |
Notifies the renderer that a replay ended.
The base implementation does nothing.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) replaySelect |
Notifies the renderer that a replay was selected.
The base implementation does nothing.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
| - (void) startPlay |
Notifies the renderer that play has started.
The base implementation does nothing.
Reimplemented in MainGameRendererPad, MainGameRendererPadKnt, MainGameRendererPadRpl, MainGameRendererPhone, MainGameRendererPhoneKnt, and MainGameRendererPhoneRpl.
|
readwritenonatomicassign |
The currently held-down button bitmask.
|
readwritenonatomicassign |
The currently pressed button bitmask.
|
readnonatomicassign |
The default button margin used by the 480-point-tall phone layout.
|
readwritenonatomicstrong |
The GL view this renderer draws into.
|
readnonatomicassign |
The button identifier for the end action.
The base returns 0.
|
readnonatomicassign |
The button identifier for the evaluate action.
The base returns 0.
|
readwritenonatomicassign |
The ghost-play button bitmask.
|
readwritenonatomicassign |
The peak opacity of the good-job overlay.
|
readnonatomicassign |
The button identifier for the good-job action.
The base returns 0.
|
readwritenonatomicunsafe_unretained |
The good-job overlay image view.
Stored without ownership, matching the binary.
|
readnonatomicassign |
The position of the good-job overlay.
The base returns CGPointZero .
|
readwritenonatomicassign |
Whether the session has music.
|
readwritenonatomicassign |
Whether the session partner is connected.
|
readwritenonatomicassign |
Whether this is a custom (edit) sequence.
|
readwritenonatomicassign |
Whether the tune was downloaded.
|
readnonatomicassign |
Whether the session has reached its end sub-state.
|
readwritenonatomicassign |
Whether the session set a new record.
|
readwritenonatomicassign |
Whether this is a session (versus) play.
|
readwritenonatomicassign |
Whether a texture change is pending.
|
readwritenonatomicassign |
The partner's final bonus.
|
readwritenonatomicassign |
Whether the session partner has finished.
|
readwritenonatomicassign |
Whether the partner achieved a full combo.
|
readwritenonatomicassign |
The partner's current score.
|
readwritenonatomicstrong |
The renderer configuration for the current session.
|
readnonatomicassign |
The score snapshot captured for replay by -backupScoreData .
|
readwritenonatomicassign |
Whether a replay is playing.
|
readwritenonatomicassign |
Whether the score has been backed up for replay.
|
readwritenonatomicassign |
The previous best score record for this tune.
|
readwritenonatomicstrong |
The note sequence being played.
|
readwritenonatomicassign |
Whether the combo counter is shown.
|
readwritenonatomicassign |
The high-level render state.
Setting it also resets subState to 0.
|
readnonatomicassign |
The position of the store-move button.
The base returns CGPointZero .
|
readnonatomicassign |
The button identifier for the store-move action.
The base returns 0.
|
readwritenonatomicassign |
The render sub-state within the current state .
|
readnonatomicassign |
The position of the tweet-send button.
The base returns CGPointZero .
|
readnonatomicassign |
The button identifier for the tweet-send action.
The base returns 0.
|
readnonatomicassign |
The default upper-background height used by the 480-point-tall phone layout.