Game Engine 2D Platformer
Variables
Engine.cpp File Reference
#include <map>
#include <string>
#include <memory>
#include <iterator>
#include <vector>
#include <SDL2_mixer/SDL_mixer.h>
#include <SDL2_ttf/SDL_ttf.h>
#include "Engine.hpp"
#include "TileMap.hpp"
#include "Constants.hpp"
#include "GameEntity.hpp"
#include "EntityManager.hpp"
#include "AIComponent.hpp"
#include "AIGraphicsComponent.hpp"
#include "GraphicsComponent.hpp"
#include "InputComponent.hpp"
#include "LifeDisplayComponent.hpp"
#include "PhysicsComponent.hpp"
#include "ResourceManager.hpp"
#include "ScoreDisplayComponent.hpp"
#include "SoundComponent.hpp"
#include "Timer.h"
#include "AIPhysicsComponent.hpp"
Include dependency graph for Engine.cpp:

Variables

const int FPS = 60
 
const float frameDelay = 1000 / FPS
 
int frameCount
 
int timerFPS
 
int lastFrame
 
int fps
 
int scrollingOffset
 
std::vector< std::shared_ptr< GameEntity > > playerVect
 
std::vector< std::shared_ptr< GameEntity > > obstacleVect
 
std::vector< std::shared_ptr< GameEntity > > enemyVect
 
TileMapmyTileMap
 
std::shared_ptr< GameEntitymainCharacter
 
std::shared_ptr< GameEntityenemyCharacter
 
ResourceManager resourceManager = ResourceManager::getInstance()
 
EntityManagerentityManager = new EntityManager()
 

Variable Documentation

◆ enemyCharacter

std::shared_ptr<GameEntity> enemyCharacter

◆ enemyVect

std::vector<std::shared_ptr<GameEntity> > enemyVect

◆ entityManager

EntityManager* entityManager = new EntityManager()

◆ FPS

const int FPS = 60

◆ fps

int fps

◆ frameCount

int frameCount

◆ frameDelay

const float frameDelay = 1000 / FPS

◆ lastFrame

int lastFrame

◆ mainCharacter

std::shared_ptr<GameEntity> mainCharacter

◆ myTileMap

TileMap* myTileMap

◆ obstacleVect

std::vector<std::shared_ptr<GameEntity> > obstacleVect

◆ playerVect

std::vector<std::shared_ptr<GameEntity> > playerVect

◆ resourceManager

◆ scrollingOffset

int scrollingOffset

◆ timerFPS

int timerFPS