Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
travelLogic.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <vector>
4#include "raylib.h"
5#include "animations.h"
6#include "cityOperations.h"
7
8#define lineColor CLITERAL(Color){ 5, 10, 23, 255 }
9
11{
12 // coordinates for line start
14
15 // coordinates for line finish
17};
18
19// Travel to next selected city (if possible)
20void travelToNextCity(Vector2 mousePoint, City* cities, City activeCity, City* tempCity, bool* searchingNextCity, bool* showPopUpMenu, int citiesCounter, int* indexPtr);
21
22// Handle mouse input for the pop-up
23void 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);
Initialise cities.
Definition: cityOperations.h:8
Vector2 startPoint
Definition: travelLogic.h:13
Vector2 endPoint
Definition: travelLogic.h:16
Define Pop up animation frame.
Definition: animations.h:39
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: travelLogic.cpp:11
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: travelLogic.cpp:44