3 ms·
I think you are over engineering it. The way I imagine it: Car {float throttle, float brake, float wheel} inherits PhysicalObject {velocity, mass, position} A
by bruce343434 5y ago
I think you are over engineering it. The way I imagine it:
Car {float throttle, float brake, float wheel} inherits PhysicalObject {velocity, mass, position}
Agent.accelerate(Car c){ c.throttle++; }
Agent.drive(Car c){
...
accelerate(c);
...
}
Human inherits Agent