topical media & game development

talk show tell print

lib-game-delta3d-sdk-examples-testStateManager-MyStateTypes.cpp / cpp



  include <MyStateTypes.h>
  
  // State stuff
  IMPLEMENT_ENUM(MyStateType);
  MyStateType::MyStateType(const std::string& name) : dtABC::State::Type(name) { AddInstance(this); }
  MyStateType::~MyStateType() {}
  
  const MyStateType MyStateType::SHELL("SHELL");
  const MyStateType MyStateType::OPTIONS("OPTIONS");
  const MyStateType MyStateType::GAME("GAME");
  
  Options::Options(const std::string& name) : dtABC::State(&MyStateType::OPTIONS,name) {}
  Shell::Shell(const std::string& name) : dtABC::State(&MyStateType::SHELL,name) {}
  Game::Game(const std::string& name) : dtABC::State(&MyStateType::GAME,name) {}
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.