Player.cpp 896 B

123456789101112131415161718192021222324
  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2008 Andreas Huber Doenni
  3. // Distributed under the Boost Software License, Version 1.0. (See accompany-
  4. // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //////////////////////////////////////////////////////////////////////////////
  6. #include "Player.hpp"
  7. #include "Waiting.hpp" // Waiting.hpp is only included here
  8. //////////////////////////////////////////////////////////////////////////////
  9. void Player::initiate_impl()
  10. {
  11. // Since we can only initiate at a point where the definitions of all the
  12. // states in the initial state configuration are known, we duplicate
  13. // the implementation of asynchronous_state_machine<>::initiate_impl() here
  14. sc::state_machine< Player, Waiting, MyAllocator >::initiate();
  15. }
  16. unsigned int Player::totalNoOfProcessedEvents_ = 0;