| lab_inheritance
    Insidious Inheritance | 
A subclass of Drawable that can draw a truck. More...
#include <truck.h>
| Public Member Functions | |
| Truck (const Vector2 ¢er) | |
| Truck (const Truck &other) | |
| ~Truck () | |
| Truck & | operator= (const Truck &rhs) | 
| Vector2 | center () const | 
| void | set_center (const Vector2 ¢er) | 
|  Public Member Functions inherited from Drawable | |
| ~Drawable () | |
| virtual void | draw (cs225::PNG *canvas) const =0 | 
| This method will draw the object onto the canvas.  More... | |
| Private Member Functions | |
| void | copy (const Truck &other) | 
| void | clear () | 
| Private Attributes | |
| Vector2 | center_ | 
| Circle ** | wheels | 
| Rectangle * | trailer | 
| Rectangle * | cabin | 
| Rectangle * | window | 
| Rectangle * | engine | 
A subclass of Drawable that can draw a truck.
| Truck::Truck | ( | const Vector2 & | center | ) | 
| Truck::Truck | ( | const Truck & | other | ) | 
| Truck::~Truck | ( | ) | 
| Vector2 Truck::center | ( | ) | const | 
| 
 | private | 
| 
 | private | 
| void Truck::set_center | ( | const Vector2 & | center | ) | 
| 
 | private | 
| 
 | private | 
| 
 | private | 
| 
 | private | 
| 
 | private | 
| 
 | private |