Searched refs:special_game_type (Results 1 – 22 of 22) sorted by relevance
8 std::string special_game_name( special_game_type id ) in special_game_name()11 case special_game_type::NONE: in special_game_name()12 case special_game_type::NUM_SPECIAL_GAME_TYPES: in special_game_name()14 case special_game_type::TUTORIAL: in special_game_name()16 case special_game_type::DEFENSE: in special_game_name()23 std::unique_ptr<special_game> get_special_game( special_game_type id ) in get_special_game()27 case special_game_type::NONE: in get_special_game()30 case special_game_type::TUTORIAL: in get_special_game()33 case special_game_type::DEFENSE: in get_special_game()
13 std::string special_game_name( special_game_type id );14 std::unique_ptr<special_game> get_special_game( special_game_type id );18 virtual special_game_type id() { in id()19 return special_game_type::NONE; in id()
59 special_game_type id() override {60 return special_game_type::TUTORIAL;
61 special_game_type id() override { in id()62 return special_game_type::DEFENSE; in id()
17 enum class special_game_type; variable96 WORLDPTR make_new_world( special_game_type special_type );
532 … for( int i = 1; i < static_cast<int>( special_game_type::NUM_SPECIAL_GAME_TYPES ); i++ ) { in opening_screen()533 … std::string spec_name = special_game_name( static_cast<special_game_type>( i ) ); in opening_screen()654 sel2 = static_cast<int>( special_game_type::NUM_SPECIAL_GAME_TYPES ) - 2; in opening_screen()658 if( sel2 < static_cast<int>( special_game_type::NUM_SPECIAL_GAME_TYPES ) - 2 ) { in opening_screen()668 … if( sel2 >= 0 && sel2 < static_cast<int>( special_game_type::NUM_SPECIAL_GAME_TYPES ) - 1 ) { in opening_screen()674 … g->gamemode = get_special_game( static_cast<special_game_type>( sel2 + 1 ) ); in opening_screen()676 … WORLDPTR world = world_generator->make_new_world( static_cast<special_game_type>( sel2 + 1 ) ); in opening_screen()
138 enum class special_game_type : int {
194 WORLDPTR worldfactory::make_new_world( special_game_type special_type ) in make_new_world()198 case special_game_type::TUTORIAL: in make_new_world()201 case special_game_type::DEFENSE: in make_new_world()
610 special_game_type gametype() const;
655 return gamemode && gamemode->id() != special_game_type::NONE; in has_gametype()658 special_game_type game::gametype() const in gametype()660 return gamemode ? gamemode->id() : special_game_type::NONE; in gametype()
1458 if( g->gametype() == special_game_type::DEFENSE ) { in generate()