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);
}
Example #2
0
 virtual void specialTick(double time, Position position) override {
   if (set) {
     setOnFire(0.03, position);
     set = false;
   }
 }