lab_inheritance
Insidious Inheritance
truck.cpp File Reference

Implementation of the Truck class. More...

#include "truck.h"
#include "color.h"
Include dependency graph for truck.cpp:

Variables

const int TRAILER_WIDTH = 48
 
const int TRAILER_HEIGHT = 16
 
const HSLAPixel TRAILER_COLOR = color::BLUE
 
const int CABIN_WIDTH = 8
 
const int CABIN_HEIGHT = 12
 
const HSLAPixel CABIN_COLOR = color::RED
 
const int ENGINE_WIDTH = 6
 
const int ENGINE_HEIGHT = 8
 
const HSLAPixel ENGINE_COLOR = color::RED
 
const int WINDOW_WIDTH = 4
 
const int WINDOW_HEIGHT = 4
 
const HSLAPixel WINDOW_COLOR = color::BLUE
 
const int WHEEL_RADIUS = 3
 
const HSLAPixel WHEEL_COLOR = color::BLACK
 
const int NUM_WHEELS = 5
 

Detailed Description

Implementation of the Truck class.

Variable Documentation

◆ CABIN_COLOR

const HSLAPixel CABIN_COLOR = color::RED

◆ CABIN_HEIGHT

const int CABIN_HEIGHT = 12

◆ CABIN_WIDTH

const int CABIN_WIDTH = 8

◆ ENGINE_COLOR

const HSLAPixel ENGINE_COLOR = color::RED

◆ ENGINE_HEIGHT

const int ENGINE_HEIGHT = 8

◆ ENGINE_WIDTH

const int ENGINE_WIDTH = 6

◆ NUM_WHEELS

const int NUM_WHEELS = 5

◆ TRAILER_COLOR

const HSLAPixel TRAILER_COLOR = color::BLUE

◆ TRAILER_HEIGHT

const int TRAILER_HEIGHT = 16

◆ TRAILER_WIDTH

const int TRAILER_WIDTH = 48

◆ WHEEL_COLOR

const HSLAPixel WHEEL_COLOR = color::BLACK

◆ WHEEL_RADIUS

const int WHEEL_RADIUS = 3

◆ WINDOW_COLOR

const HSLAPixel WINDOW_COLOR = color::BLUE

◆ WINDOW_HEIGHT

const int WINDOW_HEIGHT = 4

◆ WINDOW_WIDTH

const int WINDOW_WIDTH = 4