Home > src > BN_pol_rec > Hsand > initializeOwn_forces.m

initializeOwn_forces

PURPOSE ^

strat_val = strategic value of own force D:{1,2,3}

SYNOPSIS ^

function [ struct_own_forces, noOfOwn_forces ] = initializeOwn_forces;

DESCRIPTION ^

 strat_val = strategic value of own force D:{1,2,3}
 ALTERED 050126 added fields sensing_accuracy and sensing_range
 ALTERED 050209 added output

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function [ struct_own_forces, noOfOwn_forces ] = initializeOwn_forces;
0004 % strat_val = strategic value of own force D:{1,2,3}
0005 % ALTERED 050126 added fields sensing_accuracy and sensing_range
0006 % ALTERED 050209 added output
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

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003