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

Go to the source code of this file.

Classes

struct  LinePoints
 

Macros

#define lineColor   CLITERAL(Color){ 5, 10, 23, 255 }
 

Functions

void travelToNextCity (Vector2 mousePoint, City *cities, City activeCity, City *tempCity, bool *searchingNextCity, bool *showPopUpMenu, int citiesCounter, int *indexPtr)
 Travel to next selected city (if possible). More...
 
void handlePopUpInput (City *cities, City *activeCity, City *tempCity, PopUpAnimationFrame popUpFrame, Rectangle confirmHitbox, Rectangle denyHitbox, std::vector< LinePoints > *conLinesPtr, bool *searchingNextCity, bool *showPopUpMenu, bool *nextCityChosenPtr, int *indexPtr, int *travelPointsPtr, int *bonusPtr)
 Handle mouse input for the pop-up. More...
 

Macro Definition Documentation

◆ lineColor

#define lineColor   CLITERAL(Color){ 5, 10, 23, 255 }

Definition at line 8 of file travelLogic.h.

Function Documentation

◆ handlePopUpInput()

void handlePopUpInput ( City cities,
City activeCity,
City tempCity,
PopUpAnimationFrame  popUpFrame,
Rectangle  confirmHitbox,
Rectangle  denyHitbox,
std::vector< LinePoints > *  conLinesPtr,
bool searchingNextCity,
bool showPopUpMenu,
bool nextCityChosenPtr,
int *  indexPtr,
int *  travelPointsPtr,
int *  bonusPtr 
)

Handle mouse input for the pop-up.

Definition at line 44 of file travelLogic.cpp.

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

◆ travelToNextCity()

void travelToNextCity ( Vector2  mousePoint,
City cities,
City  activeCity,
City tempCity,
bool searchingNextCity,
bool showPopUpMenu,
int  citiesCounter,
int *  indexPtr 
)

Travel to next selected city (if possible).

Definition at line 11 of file travelLogic.cpp.

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