Fixed some bugs with AI
This commit is contained in:
@ -11,18 +11,16 @@
|
||||
#include "visualnovel/VisualNovelManager.hpp"
|
||||
#include "visualnovel/events/VisualNovelTextboxEvent.hpp"
|
||||
#include "poker/PokerGame.hpp"
|
||||
#include "poker/visualnovel/PokerNewGameEvent.hpp"
|
||||
#include "poker/visualnovel/PokerNewRoundEvent.hpp"
|
||||
#include "poker/visualnovel/PokerTakeBlindsEvent.hpp"
|
||||
#include "poker/visualnovel/PokerDealEvent.hpp"
|
||||
#include "poker/visualnovel/PokerTurnEvent.hpp"
|
||||
#include "poker/visualnovel/PokerDetermineBetterEvent.hpp"
|
||||
#include "visualnovel/events/PokerBetLoopEvent.hpp"
|
||||
#include "visualnovel/events/SimpleLoopEvent.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class TestScene {
|
||||
public:
|
||||
static Scene * create(DawnGame *game) {
|
||||
Scene *scene = new Scene(game);
|
||||
Scene *scene;
|
||||
|
||||
scene = new Scene(game);
|
||||
|
||||
// Camera
|
||||
auto camera = Camera::create(scene);
|
||||
@ -55,22 +53,7 @@ namespace Dawn {
|
||||
->then(new VisualNovelTextboxEvent(vnManager, "Blinds Taken"))
|
||||
->then(new PokerDealEvent(vnManager))
|
||||
->then(new VisualNovelTextboxEvent(vnManager, "Cards Dealt"))
|
||||
->then(new PokerDetermineBetterEvent(vnManager))
|
||||
;
|
||||
betting
|
||||
->whenEveryoneFolded(new VisualNovelTextboxEvent(vnManager, "Everyone Folded"))
|
||||
;
|
||||
betting
|
||||
->whenBettingFinished(new VisualNovelTextboxEvent(vnManager, "Betting Finished"))
|
||||
;
|
||||
betting
|
||||
->whenTurn(new VisualNovelTextboxEvent(vnManager, "Turn Time"))
|
||||
;
|
||||
betting
|
||||
->whenAiBet(new VisualNovelTextboxEvent(vnManager, "AI Bet"))
|
||||
;
|
||||
betting
|
||||
->whenHumanBet(new VisualNovelTextboxEvent(vnManager, "Human Bet"))
|
||||
->then(new PokerBetLoopEvent(vnManager))
|
||||
;
|
||||
|
||||
return scene;
|
||||
|
Reference in New Issue
Block a user