Rob Hallam
|
7a182cb7ea
|
feat: remove GameActor reference from GameState once assigned to AI
|
9 månader sedan |
Rob Hallam
|
7ac60058fa
|
refactor: use setter - give GameState a *temporary* ref to GameActor
This reference in GameState can be removed once it is given to AIPlayer in game
initialisation (setupGameState)
|
9 månader sedan |
Rob Hallam
|
d123fa9810
|
feat: call GameState::setupGameState() from initialise event handler
|
9 månader sedan |
Rob Hallam
|
87ed62cc7a
|
feat: add setupGameState method for initialising game state
This will be called from the Initialise class, making the game state ready to be
played- create player instances, board, tiles, cards etc
|
9 månader sedan |
Rob Hallam
|
7686cdd652
|
feat: move GameActor reference into AIPlayer
This avoid the ugly hack of keeping a referenec in GameState
|
9 månader sedan |
Rob Hallam
|
b9543f3819
|
feat: handle endturnclicked event (from human or AI player)
|
9 månader sedan |
Rob Hallam
|
94b9b5f647
|
feat: add AIPlayer with takeTurn() method
Intention is the game hands control to AI player after human ends turn by
calling this method
|
9 månader sedan |
Rob Hallam
|
b6b270e9c2
|
feat: identify this is running the 'end turn' demo
TurnDemo class not really necessary but illustrative
|
9 månader sedan |
Rob Hallam
|
8ef6a9f4cb
|
feat: create addPlayer2Notification basic command
There is a display bug on the frontend with this- it isn't quite aligned with
Player 2's RHS avatar
|
9 månader sedan |
Rob Hallam
|
bef929df9f
|
feat: give GameState a reference to GameActor
Can use this on AI turns etc to send messages back to frontend
|
9 månader sedan |
Rob Hallam
|
29a425de45
|
chore: initial commit with sensible .gitignore
Generated using
https://www.toptal.com/developers/gitignore/api/sbt,playframework
and also ignored the game sprites / other UI images
|
10 månader sedan |