GameOfLightAndShadows / SmarTac

tactical role playing game functional reactive framework
MIT License
1 stars 1 forks source link

Manage actors lifecycle #68

Open Kavignon opened 7 years ago

Kavignon commented 7 years ago

Anything can happen in game and make 1+ actor(s) die in the line of fire. The game manager needs to be notified when another actor gets terminated (permanently stops). When this happens, I should check to see whether the internal state of the dead actor is sent to the DeathWatch component of the actor system. In yes, it would b pretty easy to respawn a new actor with the "dead" state. Otherwise, I will need to implement a Memento of the actor states in the game manager which will need to update the game manager each time they update their internal state (I'd like to evade this situation).