Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Bucket.cc

Go to the documentation of this file.
00001 #include "objects.h"
00002 
00003 int Bucket::clicked (int x, int y) {
00004         return (x > 0 && y > 0 && x < width && y < height);
00005 }
00006 
00007 void Bucket::draw() {
00008         if (game.grabbed != game.BUCKET) ui.draw(picture, 0, 0);
00009 }
00010 
00011 void Bucket::load_pix() {
00012         picture.load("bucket");
00013         cursor.load("bucket", cursor.OWN_MASK);
00014         width = picture.width;
00015         height = picture.height;
00016 }

Generated on Sat Nov 5 16:17:19 2005 for OPIE by  doxygen 1.4.2