/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/statechart/example/Camera/Camera.cpp
53 строки
1 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
////////////////////////////////////////////////////////////////////////////// // Copyright 2002-2006 Andreas Huber Doenni // Distributed under the Boost Software License, Version 1.0. (See accompany- // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ////////////////////////////////////////////////////////////////////////////// #include "Precompiled.hpp" #include "Camera.hpp" #include "Configuring.hpp" #include "Shooting.hpp" ////////////////////////////////////////////////////////////////////////////// NotShooting::NotShooting() { std::cout << "Entering NotShooting\n"; } NotShooting::~NotShooting() { std::cout << "Exiting NotShooting\n"; } sc::result NotShooting::react( const EvShutterHalf & ) { if ( context< Camera >().IsBatteryLow() ) { return forward_event(); } else { return transit< Shooting >(); } } ////////////////////////////////////////////////////////////////////////////// Idle::Idle() { std::cout << "Entering Idle\n"; } Idle::~Idle() { std::cout << "Exiting Idle\n"; } sc::result Idle::react( const EvConfig & ) { return transit< Configuring >(); }