Exemplo n.º 1
0
void graphviz(char *pathr){

mbr aux;
    FILE *archivo;
                archivo = fopen("arbolito.dot","w");
                if(archivo != NULL){
                    fprintf(archivo,"graph G{\n");//digraph G{

                    fprintf(archivo,"node[style=filled,fontaname=\"Verdana\"];\n");
                    dibujo(aux, archivo);
                    fprintf(archivo,"}");
                }
                fclose(archivo);
                system("dot -Tjpg arbolito.dot -o arbolito.jpg");


}
Exemplo n.º 2
0
Vista::Vista(Modelo* modelo, GameControllerCliente* gameController) {
	this->modelo = modelo;
	this->pantalla = modelo->juego->pantalla;
	this->velocidad_de_scroll = 1;
	this->margen_scroll = modelo->juego->conf->get_margen_scroll();

	this->transformador = shared_ptr<CambioDeCoordendas>(
			new CambioDeCoordendas(ancho_por_celda(), altura_por_celda()));
	/*shared_ptr<Barra> barra(
			new Barra(modelo, &referencia_mapa_x, &referencia_mapa_y));
	this->barra = barra;*/
	shared_ptr<Dibujo> dibujo(new Dibujo());
	this->edificioACrear = dibujo;
	this->entidadACrear = NULL;
	this->gameController = gameController;
	this->esta_eligiendo = false;
}