~ubuntu-branches/ubuntu/karmic/gnome-games/karmic-proposed

« back to all changes in this revision

Viewing changes to glchess/src/lib/scene/opengl/opengl.py

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2009-04-14 12:31:51 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20090414123151-v18w2slnw6nx1f4d
Tags: 1:2.26.1-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
 
110
110
    def move(self, coord, delete, animate = True):
111
111
        """Extends glchess.scene.ChessPiece"""
 
112
        if not coord:
 
113
            self.scene.pieces.remove(self)
 
114
            self.feedback.onDeleted()
 
115
            return
 
116
 
112
117
        self.delete = delete
113
118
        self.location = coord
114
119
        self.targetPos = self.scene._coordToLocation(coord)