Changeset 110 for trunk/src/game/Spell.h

Show
Ignore:
Timestamp:
11/19/08 13:36:54 (17 years ago)
Author:
yumileroy
Message:

[svn] Add SpellExtraInfoMap?. Currently support:
Limited-number-of-players spell; shared damage spell; target-in-line cone spell (e.g. dark glare).
Change angle of cone spells from 120 degree to 60 degree.

Original author: megamage
Date: 2008-10-25 15:46:52-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Spell.h

    r108 r110  
    7474    PUSH_IN_FRONT, 
    7575    PUSH_IN_BACK, 
     76    PUSH_IN_LINE, 
    7677    PUSH_SELF_CENTER, 
    7778    PUSH_DEST_CENTER, 
     
    603604                { 
    604605                    case PUSH_IN_FRONT: 
    605                         if(i_spell.GetCaster()->isInFront((Unit*)(itr->getSource()), i_radius, 2*M_PI/3 )) 
     606                        if(i_spell.GetCaster()->isInFront((Unit*)(itr->getSource()), i_radius, M_PI/3 )) 
    606607                            i_data->push_back(itr->getSource()); 
    607608                        break; 
    608609                    case PUSH_IN_BACK: 
    609                         if(i_spell.GetCaster()->isInBack((Unit*)(itr->getSource()), i_radius, 2*M_PI/3 )) 
     610                        if(i_spell.GetCaster()->isInBack((Unit*)(itr->getSource()), i_radius, M_PI/3 )) 
     611                            i_data->push_back(itr->getSource()); 
     612                        break; 
     613                    case PUSH_IN_LINE: 
     614                        if(i_spell.GetCaster()->isInLine((Unit*)(itr->getSource()), i_radius )) 
    610615                            i_data->push_back(itr->getSource()); 
    611616                        break;