In OOP, this refers to a lower-level class using the definition for a higher-level class' methods or properties.
-1
votes
1answer
85 views
Class equality in JAVA [closed]
I want to equalize two object like this:
public abstract class Shape{...} // There is an abstract shape class
public class Circle extends Shape {
int radius;
...
}
...
4
votes
2answers
266 views
Game state management: the buck doesn't stop “here” soon enough
I realize there are already many Q&As on this site about GameState/GameScreen management, state machines, state stacks, etc. This question is meant as a follow-up:
Suppose hypothetically I ...
5
votes
2answers
235 views
How should I plan the inheritance structure for my game?
I am trying to write a platform shooter in C++ with a really good class structure for robustness. The game itself is secondary; it is the learning process of writing it that is primary.
I am ...
1
vote
1answer
366 views
Custom inventory items based on inheritance
So, here's the scenario:
I'm building an RPG. Like most of the other RPGs on the market, my game will feature an inventory and of course, inventory items. So far I've worked well with using a single ...
6
votes
2answers
488 views
Doesn't multiple inheritance solve all problems that entity systems do?
The question is pretty self explaining: doesn't multiple inheritance solve all the problems that entity systems also solve?
I just remembered a term called "multiple inheritance", and that seems to ...