19 lines
440 B
C++
19 lines
440 B
C++
#include "Roboid.h"
|
|
|
|
#include "NetworkSync.h"
|
|
|
|
Roboid::Roboid() {}
|
|
|
|
Roboid::Roboid(Perception *perception, Propulsion *propulsion) {
|
|
this->perception = perception;
|
|
perception->roboid = this;
|
|
this->propulsion = propulsion;
|
|
propulsion->roboid = this;
|
|
}
|
|
|
|
void Roboid::Update(float currentTimeMs) {
|
|
if (perception != nullptr)
|
|
perception->Update(currentTimeMs);
|
|
if (networkSync != nullptr)
|
|
networkSync->NetworkUpdate(this);
|
|
} |