 //
 //  iAdHandler.swift
-//  cocos2d-iad-swift
-//
-//  To use this, simply import it into your Source folder. See the README.md for more info.
+//  ReactionLine
 //
 //  Created by Zachary Espiritu on 7/19/15.
-//  Copyright (c) 2015 Zachary Espiritu. All rights reserved.
+//  Copyright (c) 2015 ZacharyEspiritu. All rights reserved.
 //
 
 import Foundation

    Called whenever the interstitial's action finishes; e.g.: the user has already clicked on the ad and decides to exit out or the ad campaign finishes.
    */
    func interstitialAdActionDidFinish(interstitialAd: ADInterstitialAd!) {
        if isInterstitialDisplaying {
            interstitialAdView.removeFromSuperview()
            closeButton.removeFromSuperview()
            isInterstitialDisplaying = false
        }
    }
    

    
    // MARK: Variables
    
    let view = CCDirector.sharedDirector().parentViewController!.view // Returns a UIView of the cocos2d parent view controller.
    
    var adBannerView = ADBannerView(frame: CGRect.zeroRect)
    var bannerPosition: BannerPosition = .Top
    var isBannerDisplaying: Bool = false
    
    var interstitial = ADInterstitialAd()
    var interstitialAdView: UIView = UIView()
    var isInterstitialDisplaying: Bool = false
    var isInterstitialLoaded: Bool = false
    
    var closeButton: UIButton!
    
