Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
animations.cpp File Reference
#include <iostream>
#include "raylib.h"
#include "timer.h"
#include "animations.h"
#include "travelLogic.h"
#include "quizLogic.h"
#include "cityOperations.h"
+ Include dependency graph for animations.cpp:

Go to the source code of this file.

Functions

void drawActiveCityAnimation (ActiveCityAnimationFrame *activeCityAnimationParts, City activeCity)
 Draw active city animation. More...
 
void drawPopUpAnimationBottom (PopUpAnimationFrame *componentPtr, float endY, bool showComponent)
 Draw pop-up animation across its different states. More...
 
void drawPopUpAnimationSide (PopUpAnimationFrame *quizPtr, Texture2D texture, bool showQuiz)
 Draw pop-up animation side. 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 drawOptionComponent (Option options[4], Texture2D texture, float x, float y, int index, int i)
 Draw option components. 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 to show if the selected option was true or false. More...
 

Function Documentation

◆ drawActiveCityAnimation()

void drawActiveCityAnimation ( ActiveCityAnimationFrame activeCityAnimationParts,
City  activeCity 
)

Draw active city animation.

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:

◆ drawOptionComponent()

void drawOptionComponent ( Option  options[4],
Texture2D  texture,
float  x,
float  y,
int  index,
int  i 
)

Draw option components.

Definition at line 287 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 to show if the selected option was true or false.

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 across its 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.

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: