- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# C:/Documents and Settings/jegan/Desktop/projectX/Door.h

Go to the documentation of this file.

    00001 #ifndef DOOR_H
    00002 #define DOOR_H
    00003
    00004 #include "Object.h"
    00005 #include "Sprite.h"
    00006
    00007 class Door : public Object {
    00008 public:
    00009         Door(List* info, int x, int y);
    00010
    00011         void draw();
    00012         void update(){;}
    00013         void collide( Object* o );
    00014         void load(List *info, bool fromConstructor = true);
    00015         virtual Object *copy();
    00016
    00017         void setLock(bool locked) {_locked = locked;}
    00018         void setOpen(bool open);
    00019 private:
    00020         Sprite *_openSprite;
    00021         Sprite *_closedSprite;
    00022
    00023         bool _open;
    00024         bool _locked;
    00025 };
    00026
    00027 #endif