Skip to content
Riemann edited this page Nov 20, 2013 · 3 revisions

A class that defines a button. Allows for creation of buttons based on input of location, width, height and shot type.

  • pos the vector position of the button
  • width the button's width
  • height the button's height
  • Rectangle button shape of the object
  • shot the type of shot assigned to that button

-isClicked()

Checks if a click has happened, then checks the location of the click. If it coincides with the position of a button, it activates that button

Source

Clone this wiki locally