summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/Bucket.cc
blob: 4b1d82adc61f4ea609f5a811a533c54157a23ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "objects.h"

int Bucket::clicked (int x, int y) {
	return (x > 0 && y > 0 && x < width && y < height);
}

void Bucket::draw() {
	if (game.grabbed != game.BUCKET) ui.draw(picture, 0, 0);
}

void Bucket::load_pix() {
	picture.load("bucket");
	cursor.load("bucket", cursor.OWN_MASK);
	width = picture.width;
	height = picture.height;
}