// RW1 v2.1 - Alexander Shabarshin (shaos@mail.ru) // http://robots.shaos.ru // Robot Warfare 1 Standard Functions and Definitions @empty=0 @eye=1 @gun=2 @front=0 @right=1 @back=2 @left=3 @t_empty=0 @t_hole=1 @t_stone=2 @t_box=3 @t_reactor=4 @t_missle=5 @t_robot=6 @t_my=7 @t_wall=10 @if(3)=((@1)?(@2):(@3)) @max(2)=(((@1)>(@2))?(@1):(@2)) @min(2)=(((@1)<(@2))?(@1):(@2)) @abs(1)=(((@1)<0)?(-(@1)):(@1)) @sqr(1)=((@1)*(@1)) @mod(2)=((@1)%(@2)) @and(2)=((@1)&&(@2)) @or(2)=((@1)||(@2)) @not(1)=(!(@1)) @neg(1)=(-(@1)) @mouse=0xFFFF @keyboard=0xFFFE @select=0xFFFD @true=1 @false=0