Show
Ignore:
Timestamp:
09/25/07 15:26:51 (15 years ago)
Author:
ralle030583
Message:

Implemented exi's involvedloader class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.contract.php

    r201 r240  
    1515        $this->klist_ = new KillList(); 
    1616        $this->llist_ = new KillList(); 
    17         if (CORP_ID) 
    18         { 
    19             $this->klist_->addInvolvedCorp(new Corporation(CORP_ID)); 
    20             $this->llist_->addVictimCorp(new Corporation(CORP_ID)); 
    21         } 
    22         if (ALLIANCE_ID) 
    23         { 
    24             $this->klist_->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
    25             $this->llist_->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
    26         } 
     17        involved::load($this->klist_,'kill'); 
     18        involved::load($this->llist_,'loss'); 
    2719        $this->contractpointer_ = 0; 
    2820        $this->qry_ = null; 
     
    301293            $this->id_ = $this->sys_id_; 
    302294        } 
    303         if (CORP_ID) 
    304         { 
    305             $this->klist_->addInvolvedCorp(new Corporation(CORP_ID)); 
    306             $this->llist_->addVictimCorp(new Corporation(CORP_ID)); 
    307         } 
    308         if (ALLIANCE_ID) 
    309         { 
    310             $this->klist_->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
    311             $this->llist_->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
    312         } 
     295         
     296        involved::load($this->klist_,'kill'); 
     297        involved::load($this->llist_,'loss'); 
    313298 
    314299        $this->klist_->setStartDate($contract->getStartDate());