Got the look action working.

This commit is contained in:
2021-08-24 10:24:26 -07:00
parent ee3c27b54b
commit 6981a4b3d7
3 changed files with 3 additions and 6 deletions

View File

@ -16,10 +16,6 @@ void _pokerGameActionBetOnUpdate(
pokergame_t *game = (pokergame_t *)action->data;
pokerplayer_t *player;
// As of right now the queue should basically be empty besides this item, so
// let's restack
queueRestack(queue);
// Are they human?
player = game->poker.players + game->poker.bet.better;
isHuman = game->poker.bet.better == POKER_PLAYER_HUMAN_INDEX;

View File

@ -14,6 +14,7 @@ void _pokerGameActionLookOnStart(
pokergame_t *game = (pokergame_t *)action->data;
pokergameactiondata_t *data = game->actionData + i;
printf("Looking at %u\n", data->lookAtPlayer);
pokerWorldLookAtPlayer(&game->scene, data->lookAtPlayer);
queueNext(queue);
}

View File

@ -28,7 +28,7 @@ void pokerDiscussionGet(
case POKER_DISCUSSION_REASON_ROUND_START:
discussion->count++;
discussion->messages[0] = "Round Start";
discussion->players[0] = 0;
discussion->players[0] = 1;
discussion->emotions[0] = VN_CHARACTER_EMOTION_XXXX_THINKING10;
break;
@ -36,7 +36,7 @@ void pokerDiscussionGet(
default:
discussion->count++;
discussion->messages[0] = "Hmm, this seems to be an error message.";
discussion->players[0] = 0;
discussion->players[0] = 2;
discussion->emotions[0] = VN_CHARACTER_EMOTION_CONCERNED_WORRIED;
break;
}