Z
Z
Zimaell2020-12-13 11:52:35
C++ / C#
Zimaell, 2020-12-13 11:52:35

How to connect the required class?

Let's say I need a map for the game, the map data will be stored in class variables, for example Map1, but what if it's a different level so that the Map2 class is connected with the same variables but with different values.
What is the best way to do this?
Or what is the best way to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-12-13
@Zimaell

These are, in general, instances of one class, or 2 classes that implement one interface. What do you want in the end?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question