Physics-Simulator  v1.4.0-beta.2
clsRope Class Reference

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_
 

Detailed Description

This class will hold all of the functions for the rope.

Constructor & Destructor Documentation

◆ clsRope()

clsRope::clsRope ( )

◆ ~clsRope()

clsRope::~clsRope ( )

Member Function Documentation

◆ activate()

void clsRope::activate ( void  )

activates the rope.

Returns
void
Here is the call graph for this function:

◆ draw()

void clsRope::draw ( void  )

Draws the rope

Bug:
(GamerMan7799#9#): Rope will only draw a straight line from its two points. Meaning that if the location of the two spots is less than the length, the rope just looks shorter instead of curving like it should. I may or may not try to fix this.
Here is the call graph for this function:

◆ isActive()

bool clsRope::isActive ( void  )

◆ setAttachment() [1/2]

void clsRope::setAttachment ( uchar  num,
LOC  place 
)

Sets rope attachment to a wall spot at place

Parameters
place= Wall spot in X and Y
Returns
void

◆ setAttachment() [2/2]

void clsRope::setAttachment ( uchar  num,
clsCannonball new_ball 
)

Sets rope attachment one to ball new_ball

Parameters
new_ball= pointer to ball rope is attached to
Returns
void

◆ update()

void clsRope::update ( void  )

updates the rope.

Returns
void
Here is the call graph for this function:

Member Data Documentation

◆ blncheckphysics_

bool clsRope::blncheckphysics_

if rope should be updated.


The documentation for this class was generated from the following files: