Wise&mystical
1.0
Project about Europe
Toggle main menu visibility
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
i
m
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
c
g
m
n
o
r
s
t
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
g
k
m
n
p
r
s
t
v
Enumerator
a
b
c
d
f
g
h
k
l
m
n
o
p
r
s
t
v
Macros
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
▼
Wise&mystical
LICENSE
Deprecated List
►
Modules
►
Classes
▼
Files
▼
File List
▼
Game
▼
_build
►
animations.cpp
►
animations.h
►
cityOperations.cpp
►
cityOperations.h
►
game.cpp
►
game.h
►
main.cpp
►
manageActiveText.cpp
►
manageActiveText.h
►
menu.cpp
►
menu.h
►
movement.cpp
►
movement.h
►
quizLogic.cpp
►
quizLogic.h
►
timer.cpp
►
timer.h
►
travelLogic.cpp
►
travelLogic.h
►
raylib-master
html
►
File Members
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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