Esempio n. 1
0
int main(){
	Clase sistemasSoftware("Sistemas de Software");
	Ing ivan(&sistemasSoftware,"Ivan");
	Ing pepe(&sistemasSoftware,"Pepe");
	Lic Marko(&sistemasSoftware, "Marko");
	sistemasSoftware.setTarea(1);
} 
Esempio n. 2
0
int main()
{
	{
		Sorcerer	robert("Robert", "the Magnificient");
		
		Victim		jim("Jimmy");
		Peon		joe("Joe");
		
		std::cout << robert << jim << joe;
		
		robert.polymorph(jim);
		robert.polymorph(joe);
	}
	{
		Victim joe("Joe");
		Victim sarah = joe;
		Victim bob(sarah);

		std::cout << joe << sarah << bob;
		joe.getPolymorphed();
		sarah.getPolymorphed();
		bob.getPolymorphed();

		Peon pepe("Pepe");
		Peon carl = pepe;
		Peon martin(carl);
		Victim bobby = martin;
		Victim sar(carl);

		std::cout << pepe << carl << martin << bobby << sar;
	}
	return 0;
}
Esempio n. 3
0
	GarbageHistoric::GarbageHistoric(std::vector<int> currentPos){
		std::vector<int> pepe (2,PREDICTION_DELTA);
		this->deltaPos=pepe;
		this->age=0;
		this->lastAppeareance=0;
		this->appeareances=0;
		this->currentPos=currentPos;
		this->state=NOT_SHOW;
		this->maxNumberOfFramesNoAppear=PREDICTION_DEFAULT_FRAMES_NOAPPEAR;
		this->focus=false;
	}