CORE
  • 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
Search

⚙️ function core_print_obj(...)

Last updated:12/4/2025

URL

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

Description

Prints all information about the current game state of a given object.

Signature

void core_print_obj(t_obj *obj);

Parameters

  • t_obj *obj: The object to print information about

Return

void

stdout

---ID: 188
Type: Unit
Position: (1, 2)
HP: 23
Unit Type: 0
Team ID: 43
gems: 0
Action Cooldown: 3

Examples

// move units
t_obj **units = ft_get_units_own();
for (int i = 0; units && units[i]; i++)
{
	t_obj *obj = units[i];

	printf("Moving the next object!\n");
	core_print_obj(obj);

Related

  • 🧩 struct s_obj
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