Game Development Reference
In-Depth Information
</public>
</class>
<class name="HandCard" parent="GameState" classId="602" >
<public>
<property name="cardId" type="int"/>
</public>
</class>
<class name="PlayerAction" parent="GameState" classId="603" >
<public>
<property name="cardId" type="int"/>
<property name="discard" type="byte"/>
</public>
</class>
<class name="Frog" parent="GameState" classId="604" >
<public>
<property name="frog" type="int"/>
<property name="position" type="int"/>
</public>
</class>
</ObjectSchema>
This needs to be in the root file of the game project folder along with the init batch
file as shown below:
@ECHO OFF
IF EXIST .\src\jjf\gsrc\client del .\src\jjf\gsrc\client\*.as
CALL "%GAMANTRA%"\bin\PulseCodeGen.bat .\Schema.xml jjf.gsrc .\src\
jjf\gsrc
IF NOT %ERRORLEVEL% == 0 GOTO ERROR
ECHO Success!
GOTO END
:ERROR
ECHO oops!
:END
Pause
The paths in the batch file may need to be modified as required on your local project
folder structure.
Let us examine each of the game states defined in the schema file:
PlayerColor is used for assigning the color to the frog of each player at the
start of the game. This game state is added as a unique game state.
 
Search WWH ::




Custom Search