File: Bucket.cc

package info (click to toggle)
xbill 2.0-14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,807; makefile: 38; sh: 22
file content (16 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (6)
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;
}