Horje
include guard c++ Code Example
include guard c++
#ifndef PHYSICS_H
#define PHYSICS_H

#include "GameObject.h"
#include <list>


class Physics
{
private:
    double gravity;
    list<GameObject*> objects;
    list<GameObject*>::iterator i;
public:
    Physics(void);
    void ApplyPhysics(GameObject*);
    void UpdatePhysics(int);
    bool RectangleIntersect(SDL_Rect, SDL_Rect);
    Vector2X CheckCollisions(Vector2X, GameObject*);
};

#endif // PHYSICS_H




Cpp

Related
get the element at an index list c++ Code Example get the element at an index list c++ Code Example
vector search by element Code Example vector search by element Code Example
string iterator in c++ Code Example string iterator in c++ Code Example
how to send email in c++ program Code Example how to send email in c++ program Code Example
maximum value in map in c++ Code Example maximum value in map in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7