Program Listing for File StockpileFecundEvent.hpp

Return to documentation for file (include/dish2/events/StockpileFecundEvent.hpp)

#pragma once
#ifndef DISH2_EVENTS_STOCKPILEFECUNDEVENT_HPP_INCLUDE
#define DISH2_EVENTS_STOCKPILEFECUNDEVENT_HPP_INCLUDE

#include "../peripheral/readable_state/ReadableState.hpp"

namespace dish2 {

struct StockpileFecundEvent {

  template< typename Cardinal, size_t SeriesIdx >
  static bool Test( const Cardinal& cardinal ) {
    return cardinal.peripheral.readable_state.template Get<
      dish2::StockpileFecund
    >();
  }

};

} // namespace dish2

#endif // #ifndef DISH2_EVENTS_STOCKPILEFECUNDEVENT_HPP_INCLUDE