Search:

Type: Posts; User: snowguy13

Search: Search took 0.11 seconds.

  1. Re: Overriding Superclass Static Methods, Using the Superclass Method

    Ooh! I just had an idea: what if instead of loading all the boosts and upgrades into each tower class specifically, I just put all of the information into a class called "TowerStats" or annex the...
  2. Re: Overriding Superclass Static Methods, Using the Superclass Method

    This is the approach I will most likely take. Each of Tower's subclasses will have its special upgrades and stat boosts, so I want to be able to store the information in different classes, for my own...
  3. Re: Overriding Superclass Static Methods, Using the Superclass Method

    Yeah, that's exactly the problem I've been grappling with. Trying to avoid that situation, that is.

    So you mean do this in the subclasses' constructors? Because if I define default values in the...
  4. Re: Overriding Superclass Static Methods, Using the Superclass Method

    Because the methods are intended to load the BASE stats of each type of tower. Each instance of each tower class will have its stats based on the base stats of each tower group. These base stats only...
  5. Re: Overriding Superclass Static Methods, Using the Superclass Method

    Hahahahaha, that is very ironic; I was just reading that page! :D

    But also, what I'm afraid is that if I refer to the superclass's method, the changes caused by the method will be loaded into the...
  6. Overriding Superclass Static Methods, Using the Superclass Method

    I recently ran into a problem of overriding a superclass's static method in a subclass. I wanted to use the superclass's static method in the subclass's static method (which had the same name as the...
Results 1 to 6 of 6