-
June 23rd, 2013, 05:47 PM
#1
Struct at the inside of class
Hello,
while writing code i got a question. For example i created a class named as unit.
Think a simple game, and the unit class will belong the units.
İf i give the preferences as private one by one, it will be irregular. For a detailed game; height, weight, race, hair preferences, eyes... Strength, dexterity, charisma, intelligence, wisdom, constution... experience, damage, armor...
and should i use struct to group them? And how to can i use struct at the inside of class as private? Can u give me examples.
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|