Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Game Design is the process of deciding the rules and mechanics of a game, and solving balancing problems to achieve the intended play experience. For questions about design of software code, use the Software Engineering or Algorithm tags instead. Likewise, questions about visual design should use Art or Graphics tags.
2
votes
Accepted
How do you structure an Item class?
Have one base class Item. Then create two sub class, one for Items with effect and another for Items without effect, like this-
class Item {
String id;
}
class EItem extends Item {
Map<Stat …