00001 #include "cce/CoucheDecor.hpp" 00002 #include <iostream> 00003 namespace cce 00004 { 00005 00006 CoucheDecor::CoucheDecor(){} 00007 CoucheDecor::~CoucheDecor(){} 00008 00009 void CoucheDecor::lecture(LecteurFichier& flux) { 00010 00011 flux.allerSection("decor"); 00012 int taille = flux.lireInt(); 00013 flux.prochaineLigne(); 00014 //std::cout << taille << std::endl; 00015 00016 while(taille-- > 0) { 00017 int id = flux.lireInt(); 00018 int x = flux.lireInt(); 00019 int y = flux.lireInt(); 00020 addElt(id, x, y); 00021 flux.prochaineLigne(); 00022 } 00023 } 00024 00025 void CoucheDecor::dessinerSur(RenderTarget& target) 00026 { 00027 dessiner(target); 00028 } 00029 00030 }