reformatting code according to guidelines defined at

http://wololo.net/forum/viewtopic.php?f=35&t=2235&start=10
This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-16 00:55:16 +00:00
parent c79fdcbf50
commit acd7bb1aa4
103 changed files with 38044 additions and 31222 deletions

View File

@@ -5,34 +5,42 @@
#include "Targetable.h"
#include "TargetChooser.h"
ActionElement::ActionElement(int id):JGuiObject(id){
activeState = INACTIVE;
modal = 0;
waitingForAnswer = 0;
currentPhase = -1;
newPhase = -1;
tc = NULL;
isClone = 0;
ActionElement::ActionElement(int id) :
JGuiObject(id)
{
activeState = INACTIVE;
modal = 0;
waitingForAnswer = 0;
currentPhase = -1;
newPhase = -1;
tc = NULL;
isClone = 0;
}
ActionElement::~ActionElement(){
if (!isClone){
SAFE_DELETE(tc);
}
ActionElement::~ActionElement()
{
if (!isClone)
{
SAFE_DELETE(tc);
}
}
int ActionElement::getActivity(){
int ActionElement::getActivity()
{
return activeState;
return activeState;
}
int ActionElement::isReactingToTargetClick(Targetable * object){
if (object && object->typeAsTarget() == TARGET_CARD) return isReactingToClick((MTGCardInstance *)object);
return 0;
int ActionElement::isReactingToTargetClick(Targetable * object)
{
if (object && object->typeAsTarget() == TARGET_CARD)
return isReactingToClick((MTGCardInstance *) object);
return 0;
}
int ActionElement::reactToTargetClick(Targetable * object){
if (object->typeAsTarget() == TARGET_CARD) return reactToClick((MTGCardInstance *)object);
return 0;
int ActionElement::reactToTargetClick(Targetable * object)
{
if (object->typeAsTarget() == TARGET_CARD)
return reactToClick((MTGCardInstance *) object);
return 0;
}