📜  include guard c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:58.093000             🧑  作者: Mango

代码示例1
#ifndef PHYSICS_H
#define PHYSICS_H

#include "GameObject.h"
#include 


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

#endif // PHYSICS_H