Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to associate long-term data with an enemy unit or city or model?

0
Posted

How to associate long-term data with an enemy unit or city or model?

0

You need to generate a unique identifier from the information you have about the enemy object using a mapping function. You store a copy of the identifier with the data to label it. The information used for the identifier should change infrequently (you must detect when it changes and update your identifier) and uniquely identify each object. Conveniently the index of each item in EnemyUn, EnemyCity and EnemyModel is constant during the current turn.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123