T
T
Tarasov Konstantin2014-11-22 00:48:20
Programming
Tarasov Konstantin, 2014-11-22 00:48:20

How to correctly organize the dependence of the program behavior on a large number of events that occurred earlier?

The question is actually the following - let's say we have a game where each subsequent event depends on what decisions we made earlier. So, how to properly organize such a dependency? The simple check for global flags seems too simple to be correct.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-11-22
Protko @Fesor

You need a Mile machine

X
xmoonlight, 2014-11-22
@xmoonlight

The state machine is what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question