Re: [Tutor] Objects & Classes...

2005-01-18 Thread Max Noel
On Jan 18, 2005, at 03:46, Liam Clarke wrote: Curious - what's mod_python? A Python module for the Apache web server, that among other things addresses the main shortcoming of CGI: mod_python (and mod_perl, mod_php and mod_ruby, for that matter) keeps the interpreter into memory (and as part of

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Liam Clarke
Curious - what's mod_python? On Tue, 18 Jan 2005 03:10:44 +, Max Noel <[EMAIL PROTECTED]> wrote: > > On Jan 18, 2005, at 02:59, Jack Cruzan wrote: > > > Wouldn't it though! I haven't checked but doesn't he use xml for his > > equipment lists - if that was the case it would be worth it to as

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Max Noel
On Jan 18, 2005, at 02:59, Jack Cruzan wrote: Wouldn't it though! I haven't checked but doesn't he use xml for his equipment lists - if that was the case it would be worth it to ask him for those files 'eh? Last time I checked, he didn't. I have the DAT files here (extracted them off a Windows in

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Jack Cruzan
Wouldn't it though! I haven't checked but doesn't he use xml for his equipment lists - if that was the case it would be worth it to ask him for those files 'eh? Thanx for the input by the way will have to let you know how this goes... > Ah, things would be so much easier if McMackie would re

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Max Noel
On Jan 17, 2005, at 22:02, Chad Crabtree wrote: (why would an attri bute need to be a separate class?) So that the points or Karma (depending on the generation system) cost of the Attribute can be calculated without having to resort to procedural programming. You'd be then able to get the Karm

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Chad Crabtree
I was thinking (it's been a while since I played) that I would do it like this. (strawman code) class Character: def __init__(self,name,attribs,skills,cyberware): ...initialize.. and code to check attrib and skill mins and maxes physical and menatl attributes should be part

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Max Noel
On Jan 17, 2005, at 20:51, Jack Cruzan wrote: Ok, so each character has his name, race, his stats, his skills, and his gear. since the name and character is unique there is no need for a class these things. hmmm maybe I am conceptualizing this wrong. would each new character then be a dictonary?

Re: [Tutor] Objects & Classes...

2005-01-17 Thread jfouhy
On Mon, 2005-01-17 at 10:59 -0800, Chad Crabtree wrote: > class NewCharacter(Character): > def __init__(self,stats,*args,**kwds): > super(Character,self).__init__(*args,**kwds) > self.stats=stats > > super is a function that calls a specific function from a parent > class. This way you c

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Jack Cruzan
Ok, so each character has his name, race, his stats, his skills, and his gear. since the name and character is unique there is no need for a class these things. hmmm maybe I am conceptualizing this wrong. would each new character then be a dictonary? Made up of different elements or would the ch

Re: [Tutor] Objects & Classes...

2005-01-17 Thread Chad Crabtree
Jack Cruzan wrote: >class Character: > > def __init__(self, name = ' ', race = 'Human', magic = 'None'): > > self.name=name > > self.race=race > > self.magic=magic > > I know your going to need some other stuff. class NewCharacter(Character):

[Tutor] Objects & Classes...

2005-01-17 Thread Jack Cruzan
Hello! I am writing (or at least attempting) to write a Character generation utility for Shadowrun in Python of course! After reading about other attempts to make and RPG dealing with with character generation it looks like OOP is the best way to go. I have no experiance with OOP and its kinda thr