Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 8:00:43 AM (16 years ago)
Author:
landauf
Message:

merged pickups2 to presentation

Location:
code/branches/presentation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation

  • code/branches/presentation/src/orxonox/overlays/notifications/NotificationQueue.cc

    r2436 r2500  
    3838{
    3939    NotificationQueue* NotificationQueue::queue_s = 0;
    40    
     40
    4141    CreateFactory(NotificationQueue);
    4242
     
    5353                queue_s = this;
    5454        }
    55        
     55
    5656        this->length_ = 3;
    5757        this->width_ = 50;
     58COUT(0) << "added notification queue" << std::endl;
    5859    }
    59    
     60
    6061    NotificationQueue::~NotificationQueue()
    6162    {
    62        
     63COUT(0) << "deleted notification queue" << std::endl;
     64
    6365    }
    64    
     66
    6567    void NotificationQueue::XMLPort(Element& xmlElement, XMLPort::Mode mode)
    6668    {
    6769        SUPER(NotificationQueue, XMLPort, xmlElement, mode);
    68        
     70
    6971        XMLPortParam(NotificationQueue, "length", setLength, getLength, xmlElement, mode);
    7072        XMLPortParam(NotificationQueue, "width", setWidth, getWidth, xmlElement, mode);
    7173    }
    72    
     74
    7375    void NotificationQueue::tick(float dt)
    7476    {
    7577        NotificationManager::tick(dt);
    76        
     78
    7779        update();
    7880    }
    79    
     81
    8082    bool NotificationQueue::setLength(int length)
    8183    {
     
    8789        return false;
    8890    }
    89    
     91
    9092    bool NotificationQueue::setWidth(int width)
    9193    {
     
    9799        return false;
    98100    }
    99    
     101
    100102    void NotificationQueue::setQueueText(const std::string & text)
    101103    {
     104COUT(0) << "queue: " << text << std::endl;
    102105        this->queueText_ = text;
    103106    }
    104    
     107
    105108    void NotificationQueue::update(void)
    106109    {
Note: See TracChangeset for help on using the changeset viewer.