Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
animations.h File Reference
#include "raylib.h"
#include "cityOperations.h"
#include "timer.h"
#include "quizLogic.h"
+ Include dependency graph for animations.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ActiveCityAnimationFrame
 Define Active city animation frame struct. More...
 
struct  PopUpAnimationFrame
 Define Pop up animation frame. More...
 

Macros

#define frame1   CLITERAL(Color){ 5, 10, 23, 120 }
 Define active city animation colors. More...
 
#define frame2   CLITERAL(Color){ 5, 10, 23, 115 }
 
#define frame3   CLITERAL(Color){ 5, 10, 23, 110 }
 
#define frame4   CLITERAL(Color){ 5, 10, 23, 105 }
 
#define frame5   CLITERAL(Color){ 5, 10, 23, 100 }
 
#define frame6   CLITERAL(Color){ 5, 10, 23, 95 }
 
#define frame7   CLITERAL(Color){ 5, 10, 23, 90 }
 
#define frame8   CLITERAL(Color){ 5, 10, 23, 85 }
 
#define frame9   CLITERAL(Color){ 5, 10, 23, 80 }
 
#define frame10   CLITERAL(Color){ 5, 10, 23, 75 }
 

Functions

void drawActiveCityAnimation (ActiveCityAnimationFrame *activeCityAnimationParts, City activeCity)
 Draw active city animation on said location on the map. More...
 
void drawPopUpAnimationBottom (PopUpAnimationFrame *componentPtr, float endY, bool showComponent)
 Draw pop-up animation bottom across different states. More...
 
void drawPopUpAnimationSide (PopUpAnimationFrame *quizPtr, Texture2D texture, bool showQuiz)
 Draw pop-up animation side across different states. More...
 
void drawPopUpMenuHover (Rectangle confirmHitbox, Rectangle denyHitbox, Texture2D confirmHover, Texture2D denyHover, PopUpAnimationFrame *popUpAnimationFramePtr)
 Draw popUp buttons hover effect . More...
 
void manageWarningAnimation (Vector2 mousePoint, City cities[40], City activeCity, PopUpAnimationFrame *warningAnimationFramePtr, PopUpAnimationFrame popUpMenuFrame, Timer *warningTimerPtr, float *warningScreentimePtr, bool *wariningVisiblePtr, bool showPopUpMenu)
 Manage warning animation. More...
 
void drawQuizOptionsHover (Option options[4], PopUpAnimationFrame quizAnimationFrame, int index)
 Draw quiz options hover effect. More...
 
void drawOptionIndicators (City activeCity, Option options[4], PopUpAnimationFrame quizAnimationFrame, bool optionSelected, int index)
 Draw option indicators. More...
 

Macro Definition Documentation

◆ frame1

#define frame1   CLITERAL(Color){ 5, 10, 23, 120 }

Define active city animation colors.

Definition at line 10 of file animations.h.

◆ frame10

#define frame10   CLITERAL(Color){ 5, 10, 23, 75 }

Definition at line 19 of file animations.h.

◆ frame2

#define frame2   CLITERAL(Color){ 5, 10, 23, 115 }

Definition at line 11 of file animations.h.

◆ frame3

#define frame3   CLITERAL(Color){ 5, 10, 23, 110 }

Definition at line 12 of file animations.h.

◆ frame4

#define frame4   CLITERAL(Color){ 5, 10, 23, 105 }

Definition at line 13 of file animations.h.

◆ frame5

#define frame5   CLITERAL(Color){ 5, 10, 23, 100 }

Definition at line 14 of file animations.h.

◆ frame6

#define frame6   CLITERAL(Color){ 5, 10, 23, 95 }

Definition at line 15 of file animations.h.

◆ frame7

#define frame7   CLITERAL(Color){ 5, 10, 23, 90 }

Definition at line 16 of file animations.h.

◆ frame8

#define frame8   CLITERAL(Color){ 5, 10, 23, 85 }

Definition at line 17 of file animations.h.

◆ frame9

#define frame9   CLITERAL(Color){ 5, 10, 23, 80 }

Definition at line 18 of file animations.h.

Function Documentation

◆ drawActiveCityAnimation()

void drawActiveCityAnimation ( ActiveCityAnimationFrame activeCityAnimationParts,
City  activeCity 
)

Draw active city animation on said location on the map.

Draw active city animation on said location on the map.

Definition at line 12 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawOptionIndicators()

void drawOptionIndicators ( City  activeCity,
Option  options[4],
PopUpAnimationFrame  quizAnimationFrame,
bool  optionSelected,
int  index 
)

Draw option indicators.

Draw option indicators.

Definition at line 355 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPopUpAnimationBottom()

void drawPopUpAnimationBottom ( PopUpAnimationFrame componentPtr,
float  endY,
bool  showComponent 
)

Draw pop-up animation bottom across different states.

Draw pop-up animation bottom across different states.

Definition at line 97 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPopUpAnimationSide()

void drawPopUpAnimationSide ( PopUpAnimationFrame quizPtr,
Texture2D  texture,
bool  showQuiz 
)

Draw pop-up animation side across different states.

Draw pop-up animation side across different states.

Definition at line 156 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPopUpMenuHover()

void drawPopUpMenuHover ( Rectangle  confirmHitbox,
Rectangle  denyHitbox,
Texture2D  confirmHover,
Texture2D  denyHover,
PopUpAnimationFrame popUpAnimationFramePtr 
)

Draw popUp buttons hover effect .

Draw popUp buttons hover effect .

Definition at line 214 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawQuizOptionsHover()

void drawQuizOptionsHover ( Option  options[4],
PopUpAnimationFrame  quizAnimationFrame,
int  index 
)

Draw quiz options hover effect.

Definition at line 335 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manageWarningAnimation()

void manageWarningAnimation ( Vector2  mousePoint,
City  cities[40],
City  activeCity,
PopUpAnimationFrame warningAnimationFramePtr,
PopUpAnimationFrame  popUpMenuFrame,
Timer warningTimerPtr,
float *  warningScreentimePtr,
bool wariningVisiblePtr,
bool  showPopUpMenu 
)

Manage warning animation.

Definition at line 237 of file animations.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: