Hi all,
I have found the three bugs I was talking about and have removed them. I have uploaded the two sets of files one that includes no debugging lines and in another folder called debug the same code with the debuglines for those that need to test any bugs from unexpected results.
Remember to set debugoutput=true to see the debug output info on the console as mentioned in my previous posts.
Please use the framework and let me know what you think and report back with any bugs.
If you have note read my previous posts or for those who are interested the framework allows you t create base classes and inherit from these. I have included example files for you to see how it works. These have all been placed in their own seperate files to be included as you need them. Of course you will need to include the main file and the helper file as a minimum.
The files on the system are:
Code: Select all
classlib.inc < -- the main framework file
constants.inc < -- classlib helper file
account.class < -- very simple class example used which is a base class
limitedaccount.class < -- this is a class that inherits from the account base class
namedaccount.class < -- another example of a class that inherits from the account base class
namedlimitedaccount.class < -- final example that inherits from limited and namedaccount which in turn inherit from account base class
test.hws < -- this is the hollywood test script that creates an instance of each of the four classes and tests setting attributes and calling their methods.
My main motivation behind this was to attempt to create a roleplaying game in hollywood and the more I got into it the more I realised I needed a class framework to help me out as the amount of information I want to have in the game is quite large. For those that are interested I am adapting the rules from a game called runequest. Once I get the classes setup and a workable combat and world system I will then see if any persons would like to help in the graphics department as I have not had much experience with manipulating graphics in hollywood.
The power and flexibility f the graphics system albeit 2d was what drew me to hollywood. I am not experienced enough to attempt this in c with sdl.
I will post these files to the site as time goes by as I am very much interested in community feedback and help with this project and would like to share it with the rest of you.
Regards,
Dwayne