author | mark <mark> | 2002-04-14 17:08:03 (UTC) |
---|---|---|
committer | mark <mark> | 2002-04-14 17:08:03 (UTC) |
commit | bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (unidiff) | |
tree | ad77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/Bucket.cc | |
parent | a0fe593db4e700989cc19e28b67a58f87823afeb (diff) | |
download | opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2 |
Import of kbill
Diffstat (limited to 'noncore/games/kbill/Bucket.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kbill/Bucket.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/games/kbill/Bucket.cc b/noncore/games/kbill/Bucket.cc new file mode 100644 index 0000000..4b1d82a --- a/dev/null +++ b/noncore/games/kbill/Bucket.cc | |||
@@ -0,0 +1,16 @@ | |||
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 | } | ||