I get a little problem with my personal computer , nothing very hazardous but still making me a bit angry . I soon I solve this problem I go back to work on it.
J'ai eut un petit souci avec mon PC , rien de grave mais ca continue a m'embeter . des que j'ai resolu ce probleme je me remet a la tache .
I need a designer to help me developping a good web site . Ask me for more details
J'ai besoin d'un designer pour m'aider a developper un bon site web . Contacter moi pour avoir les details .
some update in code , for making it to consume less CPU and now the display of the Hexagone do not call Hexagone creation each time .
First release today , faster than I think , but object gneration work well , for the moment no readme , but will be added next time .
I have make 4 main function
- Auto_generate($nb)
part of the Hex_position() Class
this function create an Hexagone of $nb radius , that mean it will contains 1+3*$nb*($nb+1) hexagone so in the code you will see a set_time_limit(600) call , its for permit to the PHP exe to run more than 30 sec . By default all hexagone inside the big one are fill with Grass land .
- Register_db($param_db)
this function is a part of the Hex_position() Class . You can register you hexagone inside a MySQL database .
- Alter_type($f,$a)
Part of the
It will change the status of one hexagone inside the Hexagone . $a are the ID of the hex and $f the new type .
- Print_img($coord_x,$coord_y,$radius)
part of the Hex_position() Class .
Permit to show the hexagone by making a HTML page .
$coord_x x position of the hexagone
$coord_y y position of the hexagone
$radius how many hexagone you want to show in radius !!! Plesae be careful using values upper than 10 will make you computer not very stable under windows because he will use a LOT of memory .
Full doc for developping shoulb be add next week ( 11-01-2003 to 18-01-2003 ) , and the first set of file for generating land will be submit may be the 11 evening (French hour ) or a bit after .