meleeisland / llamagotchi

GNU General Public License v3.0
0 stars 1 forks source link

Add llamaevent_class #2

Open d-bizzi opened 6 years ago

d-bizzi commented 6 years ago

LlamaEvent can be added to Llama Llama event queue

LlamaEvent in Llama event queue are activated one by one when the Llama is ticked

When a LlamaEvent is activated, some actions are performed on Llama. The minimum action is adding a new_event tag to the Llama communication queue ( #3 ) and the movement of the LlamaEvent from the Llama event queue to the Llama active event queue

LlamaEvents should have an expiration time in ticks. After an event in the Llama active event queue is expired the event effects are removed, an end_event tag is added to the Llama communication queue ( #3 ) and the LlamaEvent is removed from the Llama active event queue

d-bizzi commented 6 years ago

Add llamaevent class