Physics-Simulator
v1.4.0-beta.2
|
This class will hold all of the functions for the rope. More...
#include "source/rope.h"
Public Member Functions | |
clsRope () | |
~clsRope () | |
void | activate (void) |
void | update (void) |
void | draw (void) |
bool | isActive (void) |
void | setAttachment (uchar, LOC) |
void | setAttachment (uchar, clsCannonball *) |
Public Attributes | |
bool | blncheckphysics_ |
This class will hold all of the functions for the rope.
clsRope::clsRope | ( | ) |
clsRope::~clsRope | ( | ) |
void clsRope::activate | ( | void | ) |
activates the rope.
void clsRope::draw | ( | void | ) |
Draws the rope
bool clsRope::isActive | ( | void | ) |
Sets rope attachment to a wall spot at place
place | = Wall spot in X and Y |
void clsRope::setAttachment | ( | uchar | num, |
clsCannonball * | new_ball | ||
) |
Sets rope attachment one to ball new_ball
new_ball | = pointer to ball rope is attached to |
void clsRope::update | ( | void | ) |
updates the rope.
bool clsRope::blncheckphysics_ |
if rope should be updated.