|
JubeatPlus 3.9.11
|
The pad in-game renderer. More...
#include <MainGameRendererPad.h>


Instance Methods | |
| (instancetype) | - init |
| Initialises the pad renderer, chaining to the superclass. | |
| (void) | - dealloc |
| Releases the session textures, then chains to the superclass deallocation. | |
| (void) | - loadTexure:artwork:index: |
| Loads the pad session atlases: background, front, marker, combo, hold-marker, ready, and debug-font textures, and builds the hold-marker sub-renderer. | |
| (void) | - loadRatingTex: |
| Loads the rating (rank judgement) texture for a rank tier. | |
| (void) | - releaseTexture |
| Releases every session texture. | |
| (void) | - setState: |
| Sets the render state, resetting per-state counters and, in the result state, loading the rating and cleared/failed textures and starting the result BGM. | |
| (void) | - startPlay |
| Begins playback: clears the ready texture and moves to state 3. | |
| (void) | - endResult |
| Ends the result screen: in the result state sets the finished sub-state. | |
| (void) | - replaySelect |
| Selects a replay: for a downloaded custom tune with music, arms the replay and fades the good-job overlay in. | |
| (void) | - replayEnd |
| Ends a replay, clearing the replay-playing flag. | |
| (double) | - durationOfReadyGo |
| The ready-go countdown duration, in seconds. | |
| (double) | - buttonAreaOffset |
| The vertical offset of the button area. | |
| (double) | - gameAreaOffset |
| The vertical offset of the game area, in points. | |
| (void) | - draw |
| Draws one frame, dispatching on the render state and flushing every atlas. | |
| (void) | - drawDebugText:pos:alpha: |
| Draws debug text glyph-by-glyph from the debug-font sheet. | |
| (void) | - renderBG |
| Draws the pulsing background, the combo-burst effect, and the shutter. | |
| (void) | - renderMarker |
| Draws the 4x4 marker grid, the marker hit frames, and the hold markers. | |
| (void) | - renderMarkFrame:alpha: |
| Draws one panel's marker hit frame. | |
| (void) | - renderCombo: |
| Draws the combo counter and its cut-in burst. | |
| (void) | - renderUpdatedScore:atPoint:alpha:scale:boardY: |
| Draws the score digits animating up from a previous value. | |
| (void) | - renderScore:partnerScore:atPoint:scaleH:alpha: |
| Draws the running score and the partner's score. | |
| (void) | - renderBonus:atPoint:alpha: |
| Draws the bonus number. | |
| (void) | - renderMusicBar:timeline:alpha: |
| Draws the result-screen music bar and its per-note markers. | |
| (void) | - renderTuneInfo:artworkSize:alpha: |
| Draws the tune-info panel: the jacket artwork and the tune name and artist. | |
| (void) | - renderUpperBG:height: |
| Draws the upper background band. | |
| (void) | - renderUpper |
| Draws the upper region: the tune-info panel, the music bar, and the score. | |
| (void) | - renderButtons: |
| Draws the 4x4 on-screen button grid, lighting pressed buttons. | |
| (void) | - renderPreStart |
| Draws the pre-start intro: the field, upper region, and buttons cued in over frames. | |
| (void) | - renderCircle:size:alpha: |
| Draws a ring sprite scaled about a point. | |
| (void) | - renderReadyGo |
| Draws the ready/go countdown. | |
| (void) | - renderStartMark |
| Draws the start-mark intro animation. | |
| (void) | - renderFinish |
| Draws the finish banner animation. | |
| (BOOL) | - renderCleared:centerY: |
| Draws the cleared result graphic. | |
| (BOOL) | - renderFailed:centerY: |
| Draws the failed result graphic. | |
| (void) | - renderResult |
| Draws the result screen: the cleared/failed graphic, the score, the rating, and the action buttons. | |
| Instance Methods inherited from MainGameRenderer | |
| (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. | |
Protected Attributes | |
| unsigned int | frame |
| The frames elapsed in the current render state. | |
| unsigned int | subStateChangeFrame |
| The frame the sub-state last changed on. | |
| int | markerDir [kMainGameGridPanelCount] |
| The random-mode marker direction per panel. | |
| Protected Attributes inherited from MainGameRenderer | |
| 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 | |
| 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 centre position of the good-job overlay, derived from goodJobButtonID . | |
| unsigned int | twitterSendButtonID |
| The button identifier for the tweet-send action. | |
| CGPoint | twitterBtnPosition |
The position of the tweet-send button, derived from twitterSendButtonID . | |
| unsigned int | storeMoveButtonID |
| The button identifier for the store-move action. | |
| CGPoint | storeMoveBtnPosition |
The position of the store-move button, derived from storeMoveButtonID . | |
| Texture2D * | texBG |
| The background atlas texture. | |
| Texture2D * | texFront |
| The front atlas texture: the field, buttons, and lines. | |
| Texture2D * | texMarker |
| The marker atlas texture. | |
| Texture2D * | texCombo |
| The combo-number atlas texture. | |
| Texture2D * | texHoldMarker |
| The hold-marker atlas texture. | |
| Texture2D * | texReady |
| The ready/go and start-mark atlas texture. | |
| Texture2D * | texRating |
| The rank-rating (judgement) atlas texture. | |
| Texture2D * | texClear0 |
| The first cleared/failed result atlas texture. | |
| Texture2D * | texClear1 |
| The second cleared/failed result atlas texture. | |
| Texture2D * | texClear2 |
| The third cleared/failed result atlas texture. | |
| Texture2D * | texDebugFont |
| The debug-font glyph sheet. | |
| Properties inherited from MainGameRenderer | |
| 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 pad in-game renderer.
| - (double) buttonAreaOffset |
The vertical offset of the button area.
In the result state it rises over the first 20 frames.
Reimplemented from MainGameRenderer.
| - (void) dealloc |
Releases the session textures, then chains to the superclass deallocation.
| - (void) draw |
Draws one frame, dispatching on the render state and flushing every atlas.
Reimplemented from MainGameRenderer.
| - (void) drawDebugText: | (nullable const char *) | text | |
| pos: | (CGPoint) | pos | |
| alpha: | (float) | alpha |
Draws debug text glyph-by-glyph from the debug-font sheet.
| text | The C string to draw. |
| pos | The top-left position to draw it at. |
| alpha | The opacity. |
Reimplemented from MainGameRenderer.
| - (double) durationOfReadyGo |
The ready-go countdown duration, in seconds.
Reimplemented from MainGameRenderer.
| - (void) endResult |
Ends the result screen: in the result state sets the finished sub-state.
Reimplemented from MainGameRenderer.
| - (double) gameAreaOffset |
The vertical offset of the game area, in points.
Reimplemented from MainGameRenderer.
| - (instancetype) init |
Initialises the pad renderer, chaining to the superclass.
nil. Reimplemented from MainGameRenderer.
| - (void) loadRatingTex: | (short) | rank |
Loads the rating (rank judgement) texture for a rank tier.
| rank | The score rank tier, 0..8; ranks below 9 select a per-rank judgement resource. |
| - (void) loadTexure: | (nullable RendererConf *) | conf | |
| artwork: | (nullable UIImage *) | artwork | |
| index: | (nullable UIImage *) | index |
Loads the pad session atlases: background, front, marker, combo, hold-marker, ready, and debug-font textures, and builds the hold-marker sub-renderer.
The selector spelling loadTexure: (a missing "t") is the binary's own.
| conf | The renderer configuration describing the tune, difficulty, and marker. |
| artwork | The jacket artwork image. |
| index | An additional texture image the renderer composites in. |
Reimplemented from MainGameRenderer.
| - (void) releaseTexture |
| - (void) renderBG |
Draws the pulsing background, the combo-burst effect, and the shutter.
| - (void) renderBonus: | (unsigned int) | bonus | |
| atPoint: | (CGPoint) | point | |
| alpha: | (double) | alpha |
Draws the bonus number.
| bonus | The bonus points. |
| point | The top-left anchor. |
| alpha | The opacity. |
| - (void) renderButtons: | (double) | offsetY |
Draws the 4x4 on-screen button grid, lighting pressed buttons.
| offsetY | The vertical offset applied to the grid. |
| - (void) renderCircle: | (CGPoint) | point | |
| size: | (double) | size | |
| alpha: | (double) | alpha |
Draws a ring sprite scaled about a point.
| point | The centre point. |
| size | The ring diameter. |
| alpha | The opacity. |
| - (BOOL) renderCleared: | (unsigned int) | animFrame | |
| centerY: | (double) | centerY |
Draws the cleared result graphic.
| animFrame | The animation frame counter. |
| centerY | The graphic's vertical centre. |
| - (void) renderCombo: | (unsigned int) | combo |
Draws the combo counter and its cut-in burst.
| combo | The current combo count. |
| - (BOOL) renderFailed: | (unsigned int) | animFrame | |
| centerY: | (double) | centerY |
Draws the failed result graphic.
| animFrame | The animation frame counter. |
| centerY | The graphic's vertical centre. |
| - (void) renderFinish |
Draws the finish banner animation.
| - (void) renderMarker |
Draws the 4x4 marker grid, the marker hit frames, and the hold markers.
| - (void) renderMarkFrame: | (CGPoint) | point | |
| alpha: | (double) | alpha |
Draws one panel's marker hit frame.
| point | The panel's top-left corner. |
| alpha | The opacity. |
| - (void) renderMusicBar: | (CGPoint) | pos | |
| timeline: | (BOOL) | timeline | |
| alpha: | (double) | alpha |
Draws the result-screen music bar and its per-note markers.
| pos | The bar's top-left corner. |
| timeline | Whether the play head is drawn. |
| alpha | The opacity. |
| - (void) renderPreStart |
Draws the pre-start intro: the field, upper region, and buttons cued in over frames.
| - (void) renderReadyGo |
Draws the ready/go countdown.
| - (void) renderResult |
Draws the result screen: the cleared/failed graphic, the score, the rating, and the action buttons.
| - (void) renderScore: | (unsigned int) | score | |
| partnerScore: | (unsigned int) | partnerScore | |
| atPoint: | (CGPoint) | point | |
| scaleH: | (double) | scaleH | |
| alpha: | (double) | alpha |
Draws the running score and the partner's score.
| score | The player's score. |
| partnerScore | The partner's score. |
| point | The top-left anchor. |
| scaleH | The horizontal scale. |
| alpha | The opacity. |
| - (void) renderStartMark |
Draws the start-mark intro animation.
| - (void) renderTuneInfo: | (CGPoint) | pos | |
| artworkSize: | (double) | artworkSize | |
| alpha: | (double) | alpha |
Draws the tune-info panel: the jacket artwork and the tune name and artist.
| pos | The panel's top-left corner. |
| artworkSize | The jacket artwork edge length. |
| alpha | The opacity. |
| - (void) renderUpdatedScore: | (unsigned int) | score | |
| atPoint: | (CGPoint) | point | |
| alpha: | (double) | alpha | |
| scale: | (double) | scale | |
| boardY: | (float) | boardY |
Draws the score digits animating up from a previous value.
| score | The target score. |
| point | The top-left anchor. |
| alpha | The opacity. |
| scale | The horizontal scale. |
| boardY | The score-board vertical position. |
| - (void) renderUpper |
Draws the upper region: the tune-info panel, the music bar, and the score.
| - (void) renderUpperBG: | (double) | y | |
| height: | (double) | height |
Draws the upper background band.
| y | The band's vertical position. |
| height | The band's height. |
| - (void) replayEnd |
Ends a replay, clearing the replay-playing flag.
Reimplemented from MainGameRenderer.
| - (void) replaySelect |
Selects a replay: for a downloaded custom tune with music, arms the replay and fades the good-job overlay in.
Reimplemented from MainGameRenderer.
| - (void) setState: | (unsigned int) | state |
Sets the render state, resetting per-state counters and, in the result state, loading the rating and cleared/failed textures and starting the result BGM.
| state | The high-level render state. |
| - (void) startPlay |
Begins playback: clears the ready texture and moves to state 3.
Reimplemented from MainGameRenderer.
|
readnonatomicassign |
The button identifier for the end action.
|
readnonatomicassign |
The button identifier for the evaluate action.
|
readnonatomicassign |
The button identifier for the good-job action.
|
readnonatomicassign |
The centre position of the good-job overlay, derived from goodJobButtonID .
|
readnonatomicassign |
The position of the store-move button, derived from storeMoveButtonID .
|
readnonatomicassign |
The button identifier for the store-move action.
|
readwritenonatomicstrong |
The background atlas texture.
|
readwritenonatomicstrong |
The first cleared/failed result atlas texture.
|
readwritenonatomicstrong |
The second cleared/failed result atlas texture.
|
readwritenonatomicstrong |
The third cleared/failed result atlas texture.
|
readwritenonatomicstrong |
The combo-number atlas texture.
|
readwritenonatomicstrong |
The debug-font glyph sheet.
|
readwritenonatomicstrong |
The front atlas texture: the field, buttons, and lines.
|
readwritenonatomicstrong |
The hold-marker atlas texture.
|
readwritenonatomicstrong |
The marker atlas texture.
|
readwritenonatomicstrong |
The rank-rating (judgement) atlas texture.
|
readwritenonatomicstrong |
The ready/go and start-mark atlas texture.
|
readnonatomicassign |
The position of the tweet-send button, derived from twitterSendButtonID .
|
readnonatomicassign |
The button identifier for the tweet-send action.