1
몇 가지 이유 때문에 생성자로 상태 시스템의 매개 변수를 설정할 수 없습니다. 그래서 메타 상태 시스템의 공개 멤버 기능에 액세스하고 싶습니다. 백 엔드. 그건 내가부스트 메타 상태 머신의 백엔드로 액세스 프론트 엔드
typedef msm::back::state_machine<player_> player;
player p;
p.get_front_end(); //get the address of the front end
p.get_front_end().set_param(34) //call the member function of front end
같은이 가능합니다입니까? 감사합니다
다른 솔루션은 이벤트에 의해 상태 머신에 매개 변수를 전달합니다.
p.process_event(open_theme(34));
감사합니다. 생각보다 쉽습니다. – StereoMatching