Skip to content
Snippets Groups Projects
ReplayUnit.h 438 B
Newer Older
  • Learn to ignore specific revisions
  • Rojikku98's avatar
    Rojikku98 committed
    #pragma once
    #include "Unit.h"
    #include "IDAReplayObserver.h"
    
    class IDAReplayObserver;
    
    
    Rojikku98's avatar
    Rojikku98 committed
    //! A Unit that have a replayobserver insted of an Agent, 
    class ReplayUnit: public Unit
    
    Rojikku98's avatar
    Rojikku98 committed
    {
    	mutable IDAReplayObserver * m_replayObserver;
    
    public:
    
    Rojikku98's avatar
    Rojikku98 committed
    		ReplayUnit(const sc2::Unit * unit, IDAReplayObserver & replayObserver);
    
    Rojikku98's avatar
    Rojikku98 committed
    
    
    Rojikku98's avatar
    Rojikku98 committed
    		std::string getType() const;
    
    		std::string getTypeName() const;
    
    Rojikku98's avatar
    Rojikku98 committed
    		bool hasTarget() const;
    
    Rojikku98's avatar
    Rojikku98 committed
    		ReplayUnit getTarget() const;
    
    Rojikku98's avatar
    Rojikku98 committed
    
    };