예제 #1
0
파일: Drop.cs 프로젝트: makitsukasa/UhoUho
    public bool IsLinkable( Drop to )
    {
        if( to == null ) return false;
        if( this.GetPosF().LengthSq( to.GetPosF() ) > LinkRadius ) return false;
        if( DropManager.IsLinked( to ) ) return false;

        if( ( this.dropType == DropType.GO && to.dropType == DropType.RI ) ||
            ( this.dropType == DropType.RI && to.dropType == DropType.RA ) ||
            ( this.dropType == DropType.RA && to.dropType == DropType.GO )    )
        {
            return true;
        }
        else return false;
    }
예제 #2
0
 private void ExplodeBanana( Drop BananaDrop )
 {
     //バナナはバナナの周りを消す.バナナでバナナは消えない.
     foreach( Drop drop in allDrops
         .Where( x => x.GetPosF().IsInCircle( BananaDrop.GetPosF(), BananaRadius ) )
         .Where( x => !x.IsBanana() )												 )
     {
         drop.Erase();
         SaveDataManager.Add( SaveDataManager.Key.CharNum );
     }
     BananaDrop.ExplodeBanana();
     SaveDataManager.Add( SaveDataManager.Key.BananaNum );
 }