0001
0002
0003 function [ struct_own_forces, noOfOwn_forces ] = initializeOwn_forces;
0004
0005
0006
0007
0008 global verbose;
0009
0010 struct_own_forces = struct('id',{},'pos',{},'strat_val', {}, ...
0011 'sensing_accuracy', {}, 'sensing_range', ...
0012 {});
0013 struct_own_forces(1) = struct('id','town_force','pos',[159 ...
0014 149],'strat_val', 3, 'sensing_accuracy', 5, ...
0015 'sensing_range', 20);
0016 struct_own_forces(2) = struct('id', 'artielleri','pos',[156 ...
0017 77],'strat_val', 1, 'sensing_accuracy', 5, ...
0018 'sensing_range', 20);
0019
0020 noOfOwn_forces = length( struct_own_forces );
0021
0022 if verbose
0023 noOfOwn_forces
0024 end