equal
deleted
inserted
replaced
600 this->success = false; |
600 this->success = false; |
601 } |
601 } |
602 return *this; |
602 return *this; |
603 } |
603 } |
604 |
604 |
605 CommandCost CommandCost::AddCost(int32 cost) |
605 CommandCost CommandCost::AddCost(Money cost) |
606 { |
606 { |
607 this->cost += cost; |
607 this->cost += cost; |
608 return *this; |
608 return *this; |
609 } |
609 } |
610 |
610 |
612 { |
612 { |
613 this->cost *= factor; |
613 this->cost *= factor; |
614 return *this; |
614 return *this; |
615 } |
615 } |
616 |
616 |
617 int32 CommandCost::GetCost() const |
617 Money CommandCost::GetCost() const |
618 { |
618 { |
619 return this->cost; |
619 return this->cost; |
620 } |
620 } |
621 |
621 |
622 void CommandCost::SetGlobalErrorMessage() const |
622 void CommandCost::SetGlobalErrorMessage() const |