Wise&mystical
1.0
Project about Europe
Loading...
Searching...
No Matches
quizLogic.h
Go to the documentation of this file.
1
#pragma once
2
#include <
raylib.h
>
3
#include "
cityOperations.h
"
4
5
struct
Option
6
{
7
// Option hitbox
8
Rectangle
hitbox
= {};
9
10
// Hover effect texture
11
Texture
hoverEffect
;
12
13
// True answer indicator
14
Texture
trueAnswerIndicator
;
15
16
// False answer indicator
17
Texture
falseAnswerIndicator
;
18
};
19
20
// Handle mouse input relative to the quiz optiopns
21
void
handleQuizInput
(
City
activeCity,
Option
options[4],
bool
* showQuizPtr,
bool
* optionSelectedPtr,
int
* scorePtr,
int
* startNumPtr,
int
* endNumPtr,
int
* countUpstepPtr,
bool
* countUpDonePtr,
int
* bonusPtr);
cityOperations.h
handleQuizInput
void handleQuizInput(City activeCity, Option options[4], bool *showQuizPtr, bool *optionSelectedPtr, int *scorePtr, int *startNumPtr, int *endNumPtr, int *countUpstepPtr, bool *countUpDonePtr, int *bonusPtr)
Handle mouse input relative to the quiz options.
Definition:
quizLogic.cpp:10
raylib.h
City
Initialise cities.
Definition:
cityOperations.h:8
Option
Definition:
quizLogic.h:6
Option::hitbox
Rectangle hitbox
Definition:
quizLogic.h:8
Option::falseAnswerIndicator
Texture falseAnswerIndicator
Definition:
quizLogic.h:17
Option::trueAnswerIndicator
Texture trueAnswerIndicator
Definition:
quizLogic.h:14
Option::hoverEffect
Texture hoverEffect
Definition:
quizLogic.h:11
Rectangle
Definition:
raylib.h:228
Texture
Definition:
raylib.h:245
Game
_build
quizLogic.h
Generated by
1.9.5