C-Engine/include/Object/RigidBody.hpp

50 lines
1.3 KiB
C++

/* ************************************************************************** */
/* _____ _ __ ___ __ */
/* RigidBody.hpp | ___(_)/ _| ___ ( _ ) / /_ */
/* Project: C-Engine | |_ | | |_ / _ \/ _ \| '_ \ */
/* | _| | | _| __/ (_) | (_) | */
/* Author: Fife <wasabifife@gmail.com> |_| |_|_| \___|\___/ \___/ */
/* */
/* ************************************************************************** */
#ifndef CENGINE_RIGIDBODY_HPP
#define CENGINE_RIGIDBODY_HPP
#include "..\C-Engine\CEngine.hpp"
class RigidBody
{
public:
RigidBody(Object * Pointeur); //Constructeur
void SetMass(float);
void UseFixeBody( int w , int h);
void UseFlexBody();
void AppliedForce();
int Move( int x , int y);
int TryMove( int x , int y);
int CollisionDecor( int x , int y);
void Affine(int vx , int vy);
int GetWidht();
int GetHeight();
bool GetStat();
Body * GetBody();
private:
Object * Conteneur;
Body R_body;
bool usefixebody;
int widht;
int height;
};
#endif