// Interface for the road chunk class - base for Intersection and RoadSegment - // and for the class RoadChunkList: a linked list of RoadChunks. // CSE143 Spring '01 // Homework 6 #ifndef _ROAD_CHUNK_H #define _ROAD_CHUNK_H #include "sim_object.h" // RoadChunk: models a piece of road (intersection or segment). Road chunks are // non-transient objects that can contain vehicles and move them around. // The main purpose of this class is to facilitate vehicle management: all // vehicles are "owned" by RoadChunk objects, so all drawing, updates, and // deletion of vehicles are done through RoadChunks. // Note: this class adds no functionality to SimObject; it is only used as a // common base class for intersections and road segments, so they can be // stored in RoadChunkLists. class RoadChunk : public SimObject {}; #endif