19 lines
317 B
C++
19 lines
317 B
C++
#include "Verkehrsmittel.h"
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
void Verkehrsmittel::bewege(int zielx, int ziely)
|
|
{
|
|
x = zielx;
|
|
y = ziely;
|
|
}
|
|
|
|
string Verkehrsmittel::text()
|
|
{
|
|
stringstream ausgabe;
|
|
|
|
ausgabe << "Verkehrsmittel - Position x: " << x << "; Position y: " << y;
|
|
|
|
return ausgabe.str();
|
|
}
|