[11 Mar 2008] Classlib (classes) framework for hollywood

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Dwayne

[11 Mar 2008] Classlib (classes) framework for hollywood

Post by Dwayne »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 11 Mar 2008 00:30:32 +1100

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.
If anyone needs help with creating classes or a better explanation please let me know.

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
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[13 Mar 2008] Re: Classlib (classes) framework for hollywood

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 13 Mar 2008 22:38:34 +0100

Btw, I like your OO experiments. I do not have the time to have a closer look at them but I like the idea that someone is doing OOP with Hollywood because that's something I (and most other Hollywood programmers) rarely use.

I'm used to procedural programming. Hollywood is completely written in procedural C and when I write Hollywood scripts, I also don't do OOP. Thus, OOP in Hollywood rarely gets tested and it's likely that there are bugs.

So please continue with your work, and report any bugs you may find.
Locked