Original Post
finaly a programming question from me...
i´m building a console for a rpg(text based for now). on this console i use C++ classes to make the battle caracters, so in the constructor i make all that efects that a character do when he enter in a fight:
but i want do the same with the the destuctors:
[source]
~caracter()
{
cout << the goblin was destroyed!!;
}
but how i can destroy a object?? i know that program do this automatic when it exit the from the funtion or whoever it is doing ends(of curse i´m talking of non-global objects)
but how i do it myself???
============
Why she did that??
becouse she knows that you loved her.
what?? i can be i a half-mystics and all but i´m still a woman!!
-Zozma and lady Asellus. Saga Frontier
caracter()
{
// do initialization stuff
cout << the goblin appears!!!!!;
}
|