void GO_Ball::Upgrade( const upgr_flag upgradeFlag, ComPtr<ID3D11Device> const device, const std::shared_ptr<MaterialFactory> matFactory) { switch (upgradeFlag) { case BD_FLAG_RED: { setOnFire(); }break; case BD_FLAG_GREEN: { setOnGrass(); }break; case BD_FLAG_BLUE: { setOnWater(); }break; } model.newMaterial(materials[currbody], device, matFactory); }
virtual void specialTick(double time, Position position) override { if (set) { setOnFire(0.03, position); set = false; } }