Horizon Official Technical Documentation
Horizon::Zone::Game::SharedResourceTransformation< UnitType > Class Template Reference

#include <SharedResourceTransformation.hpp>

+ Inheritance diagram for Horizon::Zone::Game::SharedResourceTransformation< UnitType >:

Public Member Functions

 SharedResourceTransformation (std::shared_ptr< UnitType > before_resource, std::shared_ptr< UnitType > after_resource)
 
 SharedResourceTransformation (std::shared_ptr< UnitType > before_resource)
 
void set_after_resource (std::shared_ptr< UnitType > after_resource)
 
std::shared_ptr< UnitType > get_before_resource ()
 
std::shared_ptr< UnitType > get_after_resource ()
 
virtual bool prepare ()
 
virtual bool validate ()
 
virtual bool transform ()
 
virtual bool response ()
 

Protected Attributes

std::weak_ptr< UnitType > _before_resource
 
std::weak_ptr< UnitType > _after_resource
 

Constructor & Destructor Documentation

◆ SharedResourceTransformation() [1/2]

template<typename UnitType >
Horizon::Zone::Game::SharedResourceTransformation< UnitType >::SharedResourceTransformation ( std::shared_ptr< UnitType >  before_resource,
std::shared_ptr< UnitType >  after_resource 
)

◆ SharedResourceTransformation() [2/2]

template<typename UnitType >
Horizon::Zone::Game::SharedResourceTransformation< UnitType >::SharedResourceTransformation ( std::shared_ptr< UnitType >  before_resource)

Member Function Documentation

◆ get_after_resource()

template<typename UnitType >
std::shared_ptr< UnitType > Horizon::Zone::Game::SharedResourceTransformation< UnitType >::get_after_resource ( )
inline
67{ return _after_resource.lock(); }
std::weak_ptr< UnitType > _after_resource
Definition: SharedResourceTransformation.hpp:76

References Horizon::Zone::Game::SharedResourceTransformation< UnitType >::_after_resource.

◆ get_before_resource()

template<typename UnitType >
std::shared_ptr< UnitType > Horizon::Zone::Game::SharedResourceTransformation< UnitType >::get_before_resource ( )
inline
66{ return _before_resource.lock(); }
std::weak_ptr< UnitType > _before_resource
Definition: SharedResourceTransformation.hpp:75

References Horizon::Zone::Game::SharedResourceTransformation< UnitType >::_before_resource.

◆ prepare()

template<typename UnitType >
virtual bool Horizon::Zone::Game::SharedResourceTransformation< UnitType >::prepare ( )
inlinevirtual

◆ response()

◆ set_after_resource()

template<typename UnitType >
void Horizon::Zone::Game::SharedResourceTransformation< UnitType >::set_after_resource ( std::shared_ptr< UnitType >  after_resource)
inline

◆ transform()

◆ validate()

template<typename UnitType >
virtual bool Horizon::Zone::Game::SharedResourceTransformation< UnitType >::validate ( )
inlinevirtual

Member Data Documentation

◆ _after_resource

◆ _before_resource

template<typename UnitType >
std::weak_ptr<UnitType> Horizon::Zone::Game::SharedResourceTransformation< UnitType >::_before_resource
protected

The documentation for this class was generated from the following file: