fill out gamestate documentation

This commit is contained in:
AJ Kelly
2011-06-02 12:19:32 -05:00
parent e07ed2f122
commit e772991c88
+25 -10
View File
@@ -1578,6 +1578,9 @@
The second argument is optional. Apply the GameCommand represented by <code>sCommand</code> The second argument is optional. Apply the GameCommand represented by <code>sCommand</code>
for <code>pn</code>, if given. See <Link class='GameCommand' />. for <code>pn</code>, if given. See <Link class='GameCommand' />.
</Function> </Function>
<Function name='ClearStageModifiersIllegalForCourse' return='void' arguments=''>
Removes any stage modifiers that are illegal for course play.
</Function>
<Function name='EnoughCreditsToJoin' return='bool' arguments=''> <Function name='EnoughCreditsToJoin' return='bool' arguments=''>
Returns <code>true</code> if enough credits have been inserted to join. Returns <code>true</code> if enough credits have been inserted to join.
</Function> </Function>
@@ -1681,12 +1684,18 @@
<Function name='GetHumanPlayers' return='{PlayerNumber}' arguments=''> <Function name='GetHumanPlayers' return='{PlayerNumber}' arguments=''>
Returns an array of <Link class='PlayerNumber' />s corresponding to Human players. Returns an array of <Link class='PlayerNumber' />s corresponding to Human players.
</Function> </Function>
<Function name='GetLoadingCourseSongIndex' return='int' arguments=''>
Returns the index of the next song in the course.
</Function>
<Function name='GetMasterPlayerNumber' return='PlayerNumber' arguments=''> <Function name='GetMasterPlayerNumber' return='PlayerNumber' arguments=''>
Returns the master player number. Returns the master player number.
</Function> </Function>
<Function name='GetMultiplayer' return='bool' arguments=''> <Function name='GetMultiplayer' return='bool' arguments=''>
Returns <code>true</code> if the game is Multiplayer. Returns <code>true</code> if the game is Multiplayer.
</Function> </Function>
<Function name='GetMultiPlayerState' return='PlayerState' arguments='MultiPlayer mp'>
Returns the PlayerState for the specified MultiPlayer.
</Function>
<Function name='GetNumMultiplayerNoteFields' return='int' arguments=''> <Function name='GetNumMultiplayerNoteFields' return='int' arguments=''>
Returns the number of active multiplayer NoteFields. Returns the number of active multiplayer NoteFields.
</Function> </Function>
@@ -1723,21 +1732,27 @@
<Function name='GetPremium' return='Premium' arguments=''> <Function name='GetPremium' return='Premium' arguments=''>
Returns the current Premium. Returns the current Premium.
</Function> </Function>
<Function name='GetSongBeat' return='float' arguments=''> <Function name='GetSmallestNumStagesLeftForAnyHumanPlayer' return='int' arguments=''>
<!-- XXX: Not exactly sure on this. --> <!-- Returns the smallest number of stages left for any human player. -->
Returns the current beat of the song. Kind of does what it says on the tin.
</Function>
<Function name='GetSongBeat' theme='_fallback' return='float' arguments=''>
[01 compat.lua] Returns the current beat of the song.
</Function>
<Function name='GetSongBeatNoOffset' theme='_fallback' return='float' arguments=''>
[01 compat.lua] Returns the current beat of the song without an offset.
</Function> </Function>
<Function name='GetSongBeatVisible' return='float' arguments=''> <Function name='GetSongBeatVisible' return='float' arguments=''>
Returns the current visible beat of the song. Returns the current visible beat of the song.
</Function> </Function>
<Function name='GetSongBPS' return='float' arguments=''> <Function name='GetSongBPS' theme='_fallback' return='float' arguments=''>
Returns the song's current beats per second. [01 compat.lua] Returns the song's current beats per second.
</Function> </Function>
<Function name='GetSongDelay' sm-ssc='true' return='bool' arguments=''> <Function name='GetSongDelay' theme='_fallback' return='bool' arguments=''>
Returns <code>true</code> if a delay is active in the song. [01 compat.lua] Returns <code>true</code> if a delay is active in the song.
</Function> </Function>
<Function name='GetSongFreeze' return='bool' arguments=''> <Function name='GetSongFreeze' theme='_fallback' return='bool' arguments=''>
Returns <code>true</code> if the song is currently in a freeze. [01 compat.lua] Returns <code>true</code> if the song is currently in a freeze.
</Function> </Function>
<Function name='GetSongOptions' return='string' arguments='ModsLevel ml'> <Function name='GetSongOptions' return='string' arguments='ModsLevel ml'>
Returns the song options for the specified ModsLevel as a string. Returns the song options for the specified ModsLevel as a string.
@@ -1749,7 +1764,7 @@
Returns how much of the song is through at beat <code>fBeat</code>. Returns how much of the song is through at beat <code>fBeat</code>.
</Function> </Function>
<Function name='GetSongPosition' sm-ssc='true' return='SongPosition' arguments=''> <Function name='GetSongPosition' sm-ssc='true' return='SongPosition' arguments=''>
<!-- todo --> Returns the current SongPosition.
</Function> </Function>
<Function name='GetSortOrder' return='SortOrder' arguments=''> <Function name='GetSortOrder' return='SortOrder' arguments=''>
Returns the current SortOrder. Returns the current SortOrder.