Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Game Architectural Question

Now I am building a small multiplayer card game. During this, I found confusing about the system classes such as Gamemode, GameState, PlayerState and PlayerController. So what I am trying to do is to save a chessboard, store some in game player data, handle game logic and handle player input. I am wondering where to put these data and functions. Now I put the chessboard and game logic in GameState, player data in PlayerState. And user input functions are implemented in PlayerController. I found this architecture confusing and not performing. Where am I wrong?

Product Version: UE 4.15
more ▼

asked May 27 '17 at 12:35 PM in C++ Programming

avatar image

28 2 7 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Here a Quick refference about the Classes your talking about. Im not sure what you mean by "not performing" though. Performance comes from your Code, UE4´s code runs pretty fast.


Where you store your Stuff is up to you in the end and you dont have to use UE4 Architecture in most cases but its benefitial todo so for especially Multiplayer Games. If you want to know more how the classes relate to multiplayer you can read that fantastic Compedium from eXi (PDF):


more ▼

answered May 27 '17 at 04:21 PM

avatar image

7k 143 28 172

avatar image Nachtmahr May 27 '17 at 04:22 PM
avatar image Hmcll May 28 '17 at 12:25 AM

That pdf file is really helpful. That is much more clear than the unreal engine doc. Thank you so much.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question