User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 422,906 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,354 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums

Extremely odd error.

Join Date: Mar 2007
Posts: 54
Reputation: solsteel is on a distinguished road 
Rep Power: 2
Solved Threads: 14
solsteel solsteel is offline Offline
Junior Poster in Training

Re: Extremely odd error.

  #2  
May 17th, 2008
obj.compDmg(), being a method of fighters[0], will automatically be passed the instance object. In effect, the method receives three arguments in your case. Try this:
  1. cell.health -= fighters[0].compDmg(cell)
Reply With Quote  
All times are GMT -4. The time now is 1:19 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC