CORECORECORE
  • Home
  • Events
  • Wiki
  • Changelog
  • About Us

Wiki

README
Basics
FaQ
Lore
My First Core Bot
Tips and Tricks

Action Execution Order
Action Position Limits
Bombs
Configs
Cooldowns
Getter Filtering
Playing Against Others
Website Setup

⚙️ startGame()
🧩 s_game

⚙️ action_attack()
⚙️ action_build()
⚙️ action_createUnit()
⚙️ action_move()
⚙️ action_pathfind()
⚙️ action_transferGems()

⚙️ get_unitConfig()
⚙️ print_config_game()
⚙️ print_config_unit()
⚙️ print_config()
🧩 s_config
🧩 s_unit_config

⚙️ get_obj_filter_nearest()
⚙️ get_obj_from_id()
⚙️ get_obj_from_pos()
⚙️ get_objs_filter_count()
⚙️ get_objs_filter()

⚙️ print_obj()
⚙️ print_objs()
🔢 e_build_type
🔢 e_obj_type
🔢 e_unit_type
🧩 s_obj
🧩 s_pos

⚙️ function core_get_obj_from_pos(...)

Last updated: 11/17/2025

URL

https://github.com/42core-team/monorepo/blob/dev/client_lib/src/public/get.c#L12

Description

Get any object based on its position.

Signature

t_obj *core_get_obj_from_pos(t_pos pos);

Parameters

  • t_pos pos: The position of the object the function should get

Return

  • t_obj *: The object at the position or NULL if no such object exists.

Examples

bool ft_is_pos_empty(t_pos pos)
{
	return core_get_obj_from_pos(pos) == NULL;
}

Related

  • 🧩 struct s_obj
  • 🧩 struct s_pos
CORECORE

CORE Game is a competitive coding challenge where you design and program your own bots to battle it out in a dynamic 2D arena.

Quick Links

HomeEventsWikiChangelogAbout Us

Connect

Status PageGitHubReport an issue

© 2025 CORE Game. All rights reserved.

ImpressumDatenschutz