Exemplo n.º 1
0
Play_State_Base::Play_State_Base(vector<Player_info*> *player_info_, Zeni::String level_,
			bool isLocalGame_, bool isServer_, RakNet::SystemAddress server_addr)	:
	player_info(player_info_), level(level_),
	m_prev_clear_color(get_Video().get_clear_Color()),	
	isLocal(isLocalGame_), isServer(isServer_), host_addr(server_addr)
{		
		set_pausable(false);
}
Exemplo n.º 2
0
  Crate_State::Crate_State()
    : m_crate(Point3f(35.0f, 12.0f, 0.0f),
              Vector3f(30.0f, 30.0f, 30.0f)),
	other_crate(Point3f(35.0f, 50.0f, 50.0f),
              Vector3f(30.0f, 30.0f, 30.0f)),
    m_player(Camera(Point3f(0.0f, 0.0f, 50.0f),
             Quaternion(),
             1.0f, 10000.0f),
             Vector3f(0.0f, 0.0f, -39.0f),
             11.0f)
  {
    set_pausable(true);
  }
Exemplo n.º 3
0
  Level_1::Level_1()
    :  /*m_floor(Point3f(0.0f, 0.0f, 0.0f),
              Vector3f(200.0f, 200.0f, -1.0f)),
		m_crate(Point3f(50.0f, 50.0f, 0.0f),
              Vector3f(30.0f, 30.0f, 30.0f)),
		m_crate1(Point3f(150.0f, 0.0f, 0.0f),
			Vector3f(20.0f, 20.0f, 20.0f)),
		m_crate2(Point3f(0.0f, 150.0f, 100.0f),
			Vector3f(40.0f, 40.0f, 40.0f)),*/
    m_player(Camera(Point3f(-200.0f, 0.0f, 50.0f),
             Quaternion(),
             1.0f, 10000.0f),
             Vector3f(0.0f, 0.0f, -39.0f),
             12.0f)/*,
			 m_fire(false)*/
  {
	  m_floor = Crate(Point3f(-200.0f, -200.0f, 0.0f), Vector3f(400.0f, 400.0f, -1.0f));
		m_crate = Crate(Point3f(0.0f, 60.0f, 0.0f), Vector3f(30.0f, 30.0f, 30.0f));
		//m_crate1 = Crate(Point3f(150.0f, 0.0f, 0.0f), Vector3f(20.0f, 20.0f, 20.0f));
		m_crate2 = Crate(Point3f(100.0f, 0.0f, 20.0f), Vector3f(10.0f, 10.0f, 10.0f));
    //m_player = Player(Camera(Point3f(0.0f, 0.0f, 50.0f), Quaternion(), 1.0f, 10000.0f), Vector3f(0.0f, 0.0f, -39.0f), 12.0f);
			 m_fire = false;
    set_pausable(true);
  }