Linkpy Ptit Con
Messages : 1 Date d'inscription : 10/05/2014
| Sujet: Ah ! Ça veut dire Ah ! Dim 11 Mai - 18:07 | |
| Linkpy craque ses doigts, ouvre Eclipse, et tapote sur son clavier pendant quelques minutes... - Code:
-
//////////////////////////////////////////////////////////////////////////////// // NeoShadow, 2014 // // - The distribution of the original file is forbidden, except for the original // owner(s). // - The modification of this file is allowed, only for non-commercials // purposes. // - This file is distributed without ANY WARRANTY. // //////////////////////////////////////////////////////////////////////////////// #ifndef LINKPY_HPP_ #define LINKPY_HPP_
#include <string>
#include "Personne.hpp" #include "Contexte.hpp" #include "Passion.hpp"
#include "Brony.hpp" #include "MLP/Ponies.hpp"
class Linkpy : public Personne, public Brony { public: Linkpy( void ) : Personne( ), Brony( ) {
Nouti = Personne::recuperer( "Nouti" ); Shenzi = Personne::recuperer( "Shenzi" ); this->ajouterPersonne( Nouti ); this->ajouterPersonne( Shenzi ); this->definirBestPony( 2, MLP::Ponies::Fluttershy, MLP::Ponies::VinylScratch ); }
virtual int age( void ) const throw( ) { return 17; } virtual std::string dateNaissance( void ) const throw( ) { return "10/03/1997"; }
virtual bool aUneVie( const Contexte& contexte ) const throw( ) { if( contexte.considere( Nouti ) and contexte.considere( Shenzi ) ) return true; else return false; }
virtual const Passion& passion( void ) const throw( ) { return Passion::recuperer( "Programmation" ); } private: Personne& Nouti; Personne& Shenzi; };
#endif /* LINKPY_HPP_ */
| |
|
OrangeCape Admin
Messages : 24 Date d'inscription : 08/05/2014 Age : 26
| Sujet: Re: Ah ! Ça veut dire Ah ! Dim 11 Mai - 19:31 | |
| J'aime cet présentation en C++. Accepté. | |
|