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 }
1.4.2