Home
last modified time | relevance | path

Searched refs:terrain_id (Results 1 – 25 of 59) sorted by relevance

123

/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOW_ROCK.cpp101 terrain_res[get_loc(x,y)->terrain_id]->average_type ); in gen_rocks()
108 if( rockInfo->valid_terrain(terrain_res[get_loc(x2, y)->terrain_id]->average_type) in gen_rocks()
109 && rockInfo->valid_terrain(terrain_res[get_loc(x, y2)->terrain_id]->average_type) in gen_rocks()
110 && rockInfo->valid_terrain(terrain_res[get_loc(x2,y2)->terrain_id]->average_type)) in gen_rocks()
126 terrain_res[get_loc(sx,sy)->terrain_id]->average_type ); in gen_rocks()
157 terrain_res[get_loc(x,y)->terrain_id]->average_type ); in gen_rocks()
185 terrain_res[get_loc(x,y)->terrain_id]->average_type ); in gen_rocks()
284 terrain_res[get_loc(x,y)->terrain_id]->average_type ); in gen_dirt()
309 terrain_res[get_loc(sx,sy)->terrain_id]->average_type ); in gen_dirt()
340 terrain_res[get_loc(x,y)->terrain_id]->average_type ); in gen_dirt()
[all …]
H A DOGENHILL.cpp181 loc2->terrain_id = terrainId; in gen_hills()
194 loc2->terrain_id = terrainId; in gen_hills()
203 loc2->terrain_id = terrainId; in gen_hills()
228 loc2->terrain_id = terrainId; in gen_hills()
248 loc2->terrain_id = terrainId; in gen_hills()
323 loc2->terrain_id = terrainId; in gen_hills()
348 loc2->terrain_id = terrainId; in gen_hills()
426 loc2->terrain_id = terrainId; in gen_hills()
438 loc2->terrain_id = terrainId; in gen_hills()
463 loc2->terrain_id = terrainId; in gen_hills()
[all …]
H A DOGENMAP.cpp334 err_when( locPtr->terrain_id < 1 || in generate_map()
335 locPtr->terrain_id > terrain_res.terrain_count ); in generate_map()
365 if((get_loc(x,y)->terrain_id = terrain_res.scan( nwType, nwSubType, in set_tera_id()
408 if( terrain_res[locPtr->terrain_id]->is_coast() ) in set_loc_flags()
411 if(terrain_res[locPtr->terrain_id]->average_type!=TERRAIN_OCEAN) in set_loc_flags()
425 if( terrain_res[locPtr->terrain_id]->is_coast() ) in set_loc_flags()
428 if(terrain_res[locPtr->terrain_id]->average_type!=TERRAIN_OCEAN) in set_loc_flags()
586 terrainId = get_loc(x,y)->terrain_id; in substitute_pattern()
600 terrain_res[get_loc(tx,ty)->terrain_id]->pattern_id in substitute_pattern()
628 TerrainInfo *oldTerrain = terrain_res[get_loc(tx,ty)->terrain_id]; in substitute_pattern()
[all …]
H A DOW_PLANT.cpp176 (teraType = terrain_res[newl->terrain_id]->average_type) || in plant_reprod()
226 char teraType = terrain_res[l->terrain_id]->average_type; in plant_spread()
234 if( !l->can_add_plant() || terrain_res[l->terrain_id]->average_type != teraType) in plant_spread()
395 char teraType = terrain_res[l->terrain_id]->average_type; in plant_init()
403 if( !l->can_add_plant() || terrain_res[l->terrain_id]->average_type != teraType) in plant_init()
449 (teraType = terrain_res[newl->terrain_id]->average_type) || in plant_spray()
H A DOUNITS.cpp67 …err_when(terrain_res[world.get_loc(debugShipXLoc, debugShipYLoc)->terrain_id]->average_type!=TERRA… in assign_to_ship()
256 err_when(terrain_res[world.get_loc(destX, destY)->terrain_id]->average_type == TERRAIN_OCEAN); in ship_to_beach()
417 …err_when(terrain_res[world.get_loc(curNodePtr->node_x, curNodePtr->node_y)->terrain_id]->average_t… in ship_to_beach_path_edit()
449 if(terrain_res[locPtr->terrain_id]->average_type!=TERRAIN_OCEAN) // found in ship_to_beach_path_edit()
489 if(terrain_res[locPtr->terrain_id]->average_type!=TERRAIN_OCEAN) in ship_to_beach_path_edit()
532 if(terrain_res[locPtr->terrain_id]->average_type!=TERRAIN_OCEAN && locPtr->can_move(UNIT_LAND)) in ship_to_beach_path_edit()
646 if(terrain_res[locPtr->terrain_id]->average_type==TERRAIN_OCEAN && in ship_leave_beach()
H A DOWORLD_M.cpp200 … tilePixel = terrain_res.get_map_tile(locPtr->terrain_id)[tileYOffset + (x & TERRAIN_TILE_X_MASK)]; in draw_map()
210 if( terrain_res[locPtr->terrain_id]->average_type >= in draw_map()
211 terrain_res[northWestPtr->terrain_id]->average_type) in draw_map()
/dports/games/openage/openage-0.3.0-1262-ga554ab49/libopenage/terrain/
H A Dterrain.cpp26 terrain_id{0} { in TileContent()
76 chunk->get_data(pos)->terrain_id = terrain_id; in fill()
182 int Terrain::priority(terrain_t terrain_id) { in priority() argument
183 this->validate_terrain(terrain_id); in priority()
188 this->validate_terrain(terrain_id); in blendmode()
193 this->validate_terrain(terrain_id); in texture()
194 return this->meta->textures[terrain_id]; in texture()
417 base_tile_data.terrain_id = base_tile_content->terrain_id; in create_tile_advice()
420 if (base_tile_data.terrain_id < 0) { in create_tile_advice()
490 neighbor->terrain_id = neigh_content->terrain_id; in get_neighbors()
[all …]
H A Dterrain.h58 terrain_t terrain_id; variable
95 terrain_t terrain_id; //!< the terrain id of the influence member
113 terrain_t terrain_id; member
122 terrain_t terrain_id; member
295 bool validate_terrain(terrain_t terrain_id);
305 int priority(terrain_t terrain_id);
310 int blendmode(terrain_t terrain_id);
315 Texture *texture(terrain_t terrain_id);
/dports/games/openage/openage-0.3.0-1262-ga554ab49/libopenage/gamestate/
H A Dgenerator.cpp33 terrain_id{0},
46 terrain_id{0},
118 new_region.terrain_id = this->terrain_id; in take_tiles()
170 base.terrain_id = base_id; in create_regions()
184 player.terrain_id = 10; in create_regions()
188 obj_space.terrain_id = 8; in create_regions()
191 trees1.terrain_id = 9; in create_regions()
195 trees2.terrain_id = 9; in create_regions()
223 extra_trees.terrain_id = 9; in create_regions()
242 chunk->get_data(tile.get_pos_on_chunk())->terrain_id = r.terrain_id; in terrain()
[all …]
H A Dgame_spec.cpp373 for (size_t terrain_id = 0; in load_terrain() local
374 terrain_id < terrain_data.terrain_id_count; in load_terrain()
375 terrain_id++) { in load_terrain()
377 auto line = &terrain_meta[terrain_id]; in load_terrain()
380 terrain_data.terrain_id_priority_map[terrain_id] = line->blend_priority; in load_terrain()
381 terrain_data.terrain_id_blendmode_map[terrain_id] = line->blend_mode; in load_terrain()
389 terrain_data.textures[terrain_id] = new_texture; in load_terrain()
H A Dgame_save.cpp57 file << content->terrain_id << std::endl; in save_tile_content()
63 file >> content.terrain_id; in load_tile_content()
H A Dgenerator.h108 int terrain_id; variable
/dports/games/easyrpg-player/Player-0.7.0/src/
H A Dgame_battle.cpp58 int terrain_id; variable
74 spriteset.reset(new Spriteset_Battle(background_name, terrain_id)); in Init()
96 terrain_id = 0; in Quit()
259 terrain_id = id; in SetTerrainId()
263 return terrain_id; in GetTerrainId()
359 int terrain_id) in CalculateBaseGridPosition() argument
370 if (terrain_id > 0) { in CalculateBaseGridPosition()
396 const auto terrain_id = Game_Battle::GetTerrainId(); in Calculate2k3BattlePosition() local
442 const auto grid = CalculateBaseGridPosition(idx, party_size, 0, table_y_idx, form, terrain_id); in Calculate2k3BattlePosition()
479 const auto terrain_id = Game_Battle::GetTerrainId(); in Calculate2k3BattlePosition() local
[all …]
H A Dbackground.cpp43 Background::Background(int terrain_id) : Drawable(Priority_Background) in Background() argument
47 const lcf::rpg::Terrain* terrain = lcf::ReaderUtil::GetElement(lcf::Data::terrains, terrain_id); in Background()
50 Output::Warning("Background: Invalid terrain ID {}", terrain_id); in Background()
H A Dspriteset_battle.cpp34 Spriteset_Battle::Spriteset_Battle(const std::string bg_name, int terrain_id) in Spriteset_Battle() argument
43 background.reset(new Background(terrain_id)); in Spriteset_Battle()
H A Dgame_battle.h159 int terrain_id);
179 int terrain_id = 0; member
H A Dspriteset_battle.h34 explicit Spriteset_Battle(std::string background, int terrain_id);
H A Dbackground.h31 Background(int terrain_id);
H A Dscene_battle.h58 int terrain_id = 0; member
/dports/games/freeciv-nox11/freeciv-2.6.6/common/scriptcore/
H A Dapi_game_find.c247 Terrain *api_find_terrain(lua_State *L, int terrain_id) in api_find_terrain() argument
251 return terrain_by_number(terrain_id); in api_find_terrain()
H A Dapi_game_find.h54 Terrain *api_find_terrain(lua_State *L, int terrain_id);
/dports/games/freeciv/freeciv-2.6.6/common/scriptcore/
H A Dapi_game_find.c247 Terrain *api_find_terrain(lua_State *L, int terrain_id) in api_find_terrain() argument
251 return terrain_by_number(terrain_id); in api_find_terrain()
H A Dapi_game_find.h54 Terrain *api_find_terrain(lua_State *L, int terrain_id);
/dports/games/openage/openage-0.3.0-1262-ga554ab49/openage/convert/
H A Dfix_data.py44 terrain.terrain_id = idx
/dports/games/wesnoth/wesnoth-1.14.17/src/
H A Dminimap.cpp193 const std::string& terrain_id = tdata.get_terrain_info(underlying_terrain).id(); in getMinimap() local
194 it = game_config::team_rgb_range.find(terrain_id); in getMinimap()

123