x

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"

What parent classes should I use?

I am trying to figure out what Parent classes I should use now that I am switching everything over to C++ for the following classes:

1) Word - all rules related to game, settings, stats, etc... Also contains a single level that has homes, shops and multiple Maze entrances... Might split that up.

2) Maze - an entire dungeon made up of multiple levels

3) Level - a single level made up of segments

4) Segment - piece of a level made up of 1 or more tiles

5) Tile (base in C++, derived as blueprint) - Pre generated piece of Maze that could be used 1 or more times in a level.

Mazes will be generated similar to how they are done in Diablo... The game itself is nothing like it. Any ideas on class structure would be appreciated... Any suggestions on improving the existing tree would also be welcome.

Product Version: Not Selected
Tags:
more ▼

asked Apr 18 '14 at 09:04 PM in C++ Programming

avatar image

Noctys
15 4 6 7

avatar image Shadowriver Apr 18 '14 at 09:08 PM

So you got those classes in blueprint? If yes why don't you just use the same parents?

avatar image Noctys Apr 18 '14 at 09:19 PM

I only have Level, Segment and Tile done in blueprints, they are all based off of the actor class and I am not sure that is the best thing. Also, there are a lot more subclasses to choose from when doing things in C++ so I am hoping to get some advice from someone who has experience with the C++ side of UE.

avatar image Shadowriver Apr 18 '14 at 11:09 PM

All things in blueprint are representations of what it is in C++, If Actor is was all you needed then use Actor in C++ :)

avatar image Noctys Apr 19 '14 at 12:43 AM

That's not correct though, because you can create a component in a C++ class, so a tile could be a component instead of an Actor. I have also considered whether everything other than a level should be an object that holds data about placement and arrays of contents and the only actor is the tile itself.

avatar image Shadowriver Apr 19 '14 at 12:58 AM

But dont tile will require components too for it apperence?

avatar image Noctys Apr 19 '14 at 01:01 AM

Yes - so can you place components on components? That is why I am asking about this stuff - I don't know anything about he class-side of UE and reading the API references are not very useful for that sort of things.

avatar image Shadowriver Apr 19 '14 at 01:22 AM

You can attach components to components, you could also make component that meskes components on actor :> so i guess you could go that way if you want, but oyu can make all of them actors it would not make much of a diffrence.

You might check level streaming, it allows to use multiple umaps in one umap, don't know what exacly it can do so dive in to it maybe

But first one "word" should be AGameMode even if you do that in blueprint

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

0 answers: sort voted first
Be the first one to answer this question
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