/usr/share/games/colobot/ai/tremot5b.txt is in colobot-common 0.1.2-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62  | public class order
{
	int    m_type;
	float  m_param;
}
public class exchange
{
	static private order m_fifo[] = null;
	// Put an order into the fifo
	synchronized void put(order a)
	{
		m_fifo[sizeof(m_fifo)] = a;
	}
	// Get an order from the fifo
	synchronized order get()
	{
		if ( sizeof(m_fifo) == 0 )  return null;
		order a = m_fifo[0];
		order copy[] = null;
		for ( int i=1 ; i<sizeof(m_fifo) ; i++ )
		{
			copy[i-1] = m_fifo[i];
		}
		m_fifo = copy;
		return a;
	}
}
extern void object::Slave5( )
{
	exchange list();
	order    todo;
	while ( true )
	{
		while ( true )
		{
			todo = list.get();
			if ( todo != null )  break;
			wait(1);
		}
		if ( todo.m_type == 1 )
		{
			message("move("+todo.m_param+")");
			move(todo.m_param);
		}
		else if ( todo.m_type == 2 )
		{
			message("turn("+todo.m_param+")");
			turn(todo.m_param);
		}
		else
		{
			message("Unknown order");
		}
	}
}
 |