~ubuntu-branches/ubuntu/natty/xbill/natty

« back to all changes in this revision

Viewing changes to Bucket.cc

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-09-07 09:52:14 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040907095214-d0m46ojc8f7upuqm
Tags: 2.1-4
maintainer upload of NMU - many thanks Tollef (closes: #268885) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "objects.h"
2
 
 
3
 
int Bucket::clicked (int x, int y) {
4
 
        return (x > 0 && y > 0 && x < width && y < height);
5
 
}
6
 
 
7
 
void Bucket::draw() {
8
 
        if (game.grabbed != game.BUCKET) ui.draw(picture, 0, 0);
9
 
}
10
 
 
11
 
void Bucket::load_pix() {
12
 
        picture.load("bucket");
13
 
        cursor.load("bucket", cursor.OWN_MASK);
14
 
        width = picture.width;
15
 
        height = picture.height;
16
 
}