Project Task Page: Bugfix to BasicSprite component

Status: Completed
Current Developers: MH, MS
Current "inflight" dev location: /branches/private_MH_20070425_spritebugfix
Start Date: 25 April 2007
Expected End Date: 30 April 2007
End Date: 26 April 2007
Date this page last updated: 26 April 2007
Estimated effort so far: 0.75

Description

Bugfix to BasicSprite class - clashed with Axon.Microprocess.microprocess since both defined pause() and unpause() methods.

Effect of bug:

  • when running Code/Python/Kamaelia/Examples/SimpleGraphicalApps/BouncingCatGame/SimpleGame.py
  • program is non responsive, and the shapes don't bounce around. clicking doesn't cause shapes to appear or disappear.

Inputs

  • Task Sponsor: MH
  • Task Owner: MH
  • Developers: MH, MS
  • Users: none
  • Interested third parties: MS
  • Requirements
    • MUST fix the bug so the problem doesn't occur
    • SHOULD not result in any foreseeable regressions

Outputs

Expected

  • Modifications to:
    • /Code/Python/Kamaelia/Kamaelia/UI/Pygame/BasicSprite.py

Actual

  • Branch /branches/private_MH_20070425_spritebugfix/
  • ...containing modifications to:
    • /Code/Python/Kamaelia/Kamaelia/UI/Pygame/BasicSprite.py
    • /Code/Python/Kamaelia/Examples/SimpleGraphicalApps/BouncingCatGame/Sprites/BasicSprite.py
    • /Code/Python/Kamaelia/Examples/SimpleGraphicalApps/BouncingCatGame/SimpleGame.py

Realistic possibilities arising as a result of activity on this task

none

Related Tasks

Tasks that directly enable this task (dependencies)

none

Sub Tasks

  • Branch containing modifications
  • Merge of branch

Task Log

  • 2007 04 25 : Task status changed to running
  • 2007 04 25 : Added developer MH
  • 2007 04 25 : Created branch /branches/private_MH_20070425_spritebugfix/
  • 2007 04 25 : Fixed the bug and tested fixes work
  • 2007 04 25 : Ready for merging into /trunk
  • 2007 04 25 : Time spent 0.5 days
  • 2007 04 25 : Removed developer MH
  • 2007 04 26 : Added developer MS
  • 2007 04 26 : Merged with /trunk
  • 2007 04 26 : Time spend 0.25 days
  • 2007 04 26 : Task status changed to completed

Discussion

Turned out that the BasicSprite.py code existed both in the codebase, and in a subdir in the examples directory. Both were modified to fix the bug.

For consistency, the messages passed/understood were changed from "pause" terminology to match the new "freeze" terminology too - so SimpleGame.py needed modification too.

-- Matt, 25 April 2007


 

Kamaelia is an open source project originated from and guided by BBC Research. For more information browse the site or get in contact.

This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)

(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved

This web site is powered by the same code created for the bicker manor project. For more details, contact Michael Sparks at BBC Research directly (cf contact)