darozak / Advolition

1 stars 0 forks source link

Create a Chassis class to manage hit points #32

Closed darozak closed 7 months ago

darozak commented 7 months ago

It worked well creating a battery class to manage power levels. I'll do the same for htps by managing them in a chassis class.

darozak commented 7 months ago

Moved HP management to Chassis class and prevent robot from moving if HP = 0 (https://github.com/darozak/Advolition/commit/4a7e510bb3e48578c40acb0b1d53a2dde95e209f). Works well.