- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/sim/CarSource.h

Go to the documentation of this file.

    00001 #ifndef CARSOURCE_H_
    00002 #define CARSOURCE_H_
    00003
    00004 #include "../config.h"
    00005 #include "../iface/Animated.h"
    00006 #include "SimulationObject.h"
    00007 #include "Sector.h"
    00008
    00009 class CarSource: public SimulationObject, public Animated {
    00010 public:
    00011     CarSource(Sector* sector, CarType carType, const Vector3r &pos, const dReal dir, unsigned limit, unsigned wait);
    00012     virtual ~CarSource();
    00013
    00014     virtual void initialize();
    00015     virtual void computeStep();
    00016     virtual void performStep();
    00017
    00018     virtual std::string toString() const;
    00019
    00020 private:
    00021     Sector* _sector;
    00022     CarType _carType;
    00023     Vector3r _pos;
    00024     dReal _dir;
    00025     unsigned _limit;
    00026     unsigned _wait;
    00027     unsigned _timer;
    00028 };
    00029
    00030 #endif /*CARSOURCE_H_*/