Computer Science Canada Importing problems |
Author: | Raknarg [ Fri May 18, 2012 9:20 am ] |
Post subject: | Importing problems |
I'm having a problem with importing and units and such, I was hoping someone wcould hellp me. I have a picture of what I'm doing, i thought it'd be easier. So I'm trying to import units together, and it won't let me, it says that importing is incompatible with units or something like that. i figure its a syntax problem, but idk what. Note: Just click onthe image, it will bring a new window with the right resolution |
Author: | mirhagk [ Fri May 18, 2012 9:33 am ] |
Post subject: | RE:Importing problems |
Is there a reason Ship class needs the initialize module? And a reason the initialize module needs Ship_Stats. Seems to me that only one of those dependencies should be required since Ship inherits from Ship_Stats. |
Author: | Zren [ Fri May 18, 2012 10:03 am ] |
Post subject: | RE:Importing problems |
You can't extend/inherit a class from another module/unit. Though that doesn't really sound like what your problem is. |
Author: | Raknarg [ Fri May 18, 2012 11:46 am ] |
Post subject: | RE:Importing problems |
Nevermind guys, it was a syntax error, it works fine. And mirhagk, it was because I was importing ship into initialize and initialize into ship, so i thought that might make a problem. My real problem was just importing units into other units, but it works fine now. |