亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? csession.cls

?? 3D縱版射擊程序
?? CLS
?? 第 1 頁 / 共 2 頁
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "cSession"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Option Explicit

Private I_oDXInstance As DirectX7
Private I_oDDInstance As DirectDraw7
Private I_oDSInstance As DirectSound

Public RenderTime As Long
Public UpdateTime As Long
Public ProcessTime As Long

Public Campaign As New cCampaign

Private I_sPlugin() As String
Public SoundPresent As Boolean

Private I_oViewport As cViewport
Private I_oLevel As cLevel
Private I_oMenu As cMenu
Private I_oFrames As cFrames
Private I_oSounds As cSounds
Private I_oEnemyTemplates As cEnemyTemplates
Private I_oPlayer As cPlayer

Private I_nWaveVolume As Integer
Private I_nMusicVolume As Integer

Public Detail As Boolean
Public Joystick As Boolean
Public JoystickDead As Long
Public Difficulty As Integer

Public Terminating As Boolean
Public Mode As Integer
Public DebugMode As Boolean

Public FrameCount As Long
Public FramesPerSecond As Long

Public Property Get Player() As cPlayer
    Set Player = I_oPlayer
End Property
Public Property Set Player(oPlayer As cPlayer)
    Set I_oPlayer = oPlayer
End Property
Public Sub RegisterPlugin(sName As String)
    ReDim Preserve I_sPlugin(UBound(I_sPlugin) + 1)
    I_sPlugin(UBound(I_sPlugin)) = sName
End Sub
Public Function PluginLoaded(sName As String) As Boolean

    Dim L_nRun As Long
    For L_nRun = 0 To UBound(I_sPlugin)
        If I_sPlugin(L_nRun) = sName Then
            PluginLoaded = True
            Exit Function
        End If
    Next
    
End Function

Public Property Get WaveVolume() As Integer
    WaveVolume = I_nWaveVolume
End Property
Public Property Let WaveVolume(nNew As Integer)
    If nNew > 100 Then nNew = 100
    If nNew < 0 Then nNew = 0
    SetWaveVolume nNew
    I_nWaveVolume = nNew
End Property

Public Property Get MusicVolume() As Integer
    MusicVolume = I_nMusicVolume
End Property
Public Property Let MusicVolume(nNew As Integer)
    If nNew > 100 Then nNew = 100
    If nNew < 0 Then nNew = 0
    SetMusicVolume nNew
    I_nMusicVolume = nNew
End Property

Public Sub SetMusicVolume(nVolume As Integer)
    On Error GoTo E_SetMusicVolume
    If SoundPresent Then
        If Not I_oMenu.MenuSound Is Nothing Then
            I_oMenu.MenuSound.SetVolume Int((DSBVOLUME_MIN / 100) * (100 - IIf(nVolume + 10 > 100, 100, nVolume + 10)))
        End If
    End If
    
    Dim L_nMidiDeviceHandle As Long
    Dim L_nVolume As Long
    L_nMidiDeviceHandle = mciGetDeviceID(I_oLevel.Music)
    L_nVolume = Int(327 * nVolume) + Int(327 * nVolume) * (2 ^ 16)
    midiOutSetVolume L_nMidiDeviceHandle, L_nVolume
    On Error GoTo 0
    Exit Sub
E_SetMusicVolume:
    
End Sub

Public Sub PlayMidiMusic(sFileName As String)

    Dim L_sFullPath As String * 255
    Dim L_sRealPath As String
    Dim L_nPathLength As String
    
    On Error GoTo E_IsPluginMusic
    Open App.Path + "\" + sFileName + ".mid" For Input As #4
    Close #4
    L_nPathLength = GetShortPathName(App.Path, L_sFullPath, 255)
    L_sRealPath = Left(L_sFullPath, L_nPathLength)
    GoTo E_IsStandardMusic
    
E_IsPluginMusic:
    L_nPathLength = GetShortPathName(App.Path + "\plugin\", L_sFullPath, 255)
    L_sRealPath = Left(L_sFullPath, L_nPathLength)
        
E_IsStandardMusic:
    On Error GoTo 0
    
    mciSendString "close " & sFileName, 0&, 0, 0
    mciSendString "open " + L_sRealPath + "\" + sFileName + ".mid type sequencer alias " & sFileName, 0&, 0, 0
    mciSendString "play " & sFileName, 0&, 0, 0

End Sub

Public Sub SetWaveVolume(nVolume As Integer)
    If Not SoundPresent Then Exit Sub
    Dim L_oFrame As cFrame
    For Each L_oFrame In I_oFrames
        If Not L_oFrame.Sound Is Nothing Then
            L_oFrame.Sound.SetVolume Int((DSBVOLUME_MIN / 100) * (100 - nVolume))
        End If
    Next
    
End Sub

Public Property Get DXInstance() As DirectX7
    Set DXInstance = I_oDXInstance
End Property
Public Property Set DXInstance(oDXInstance As DirectX7)
    Set I_oDXInstance = oDXInstance
End Property

Public Property Get DDInstance() As DirectDraw7
    Set DDInstance = I_oDDInstance
End Property
Public Property Set DDInstance(oDDInstance As DirectDraw7)
    Set I_oDDInstance = oDDInstance
End Property

Public Property Get DSInstance() As DirectSound
    Set DSInstance = I_oDSInstance
End Property
Public Property Set DSInstance(oDSInstance As DirectSound)
    Set I_oDSInstance = oDSInstance
End Property

Public Property Get EnemyTemplates() As cEnemyTemplates
    Set EnemyTemplates = I_oEnemyTemplates
End Property
Public Property Set EnemyTemplates(oEnemyTemplates As cEnemyTemplates)
    Set I_oEnemyTemplates = oEnemyTemplates
End Property

Public Property Get Viewport() As cViewport
    Set Viewport = I_oViewport
End Property
Public Property Set Viewport(oViewport As cViewport)
    Set I_oViewport = oViewport
End Property

Public Property Get Level() As cLevel
    Set Level = I_oLevel
End Property
Public Property Set Level(oLevel As cLevel)
    Set I_oLevel = oLevel
End Property

Public Property Get Sounds() As cSounds
    Set Sounds = I_oSounds
End Property
Public Property Set Sounds(oSounds As cSounds)
    Set I_oSounds = oSounds
End Property


Public Property Get Menu() As cMenu
    Set Menu = I_oMenu
End Property
Public Property Set Menu(oMenu As cMenu)
    Set I_oMenu = oMenu
End Property

Public Property Get Frames() As cFrames
    Set Frames = I_oFrames
End Property
Public Property Set Frames(oFrames As cFrames)
    Set I_oFrames = oFrames
End Property

Public Sub Initialize(nHWnd As Long)

    If Not HardwareCheck Then
        fMessage.Hide
        fMessage.lblMessage = "Wrong screen resolution and/or color depth detected. Zooom requires at least a resolution of 800x600 pixel and 16-bit color depth. Please change your system settings and restart Zooom."
        fMessage.Show 1
        Unload fZooom
        End
    End If
    
    Dim L_nValue As Long
    Dim L_nFactor As Long
    For L_nValue = 0 To 255
        G_nTranslucencyLookup(L_nValue, 100) = L_nValue
        For L_nFactor = 0 To 99
            G_nTranslucencyLookup(L_nValue, L_nFactor) = Int(L_nValue * ((100 - L_nFactor) / 100))
        Next
    Next
    
    ReDim I_sPlugin(0)
    Difficulty = 1
    
    On Error GoTo E_DirectX
    Set I_oDXInstance = New DirectX7
    Set I_oDDInstance = I_oDXInstance.DirectDrawCreate("")
    On Error GoTo 0
    
    On Error GoTo E_NoSound
    Set I_oDSInstance = I_oDXInstance.DirectSoundCreate("")
    I_oDSInstance.SetCooperativeLevel fZooom.hwnd, DSSCL_NORMAL
    SoundPresent = True
E_NoSound:
    On Error GoTo 0
    
    Set Campaign = New cCampaign
    Set Campaign.Parent = Me
    Campaign.Initialize
    
    Set I_oViewport = New cViewport
    Set I_oViewport.Parent = Me
    I_oViewport.Initialize nHWnd
    
    Set I_oSounds = New cSounds
    Set I_oSounds.Parent = Me
    
    Set I_oFrames = New cFrames
    Set I_oFrames.Parent = Me
    I_oFrames.Initialize
    
    Set I_oEnemyTemplates = New cEnemyTemplates
    Set I_oEnemyTemplates.Parent = Me
    I_oEnemyTemplates.Initialize
    
    WaveVolume = 80
    MusicVolume = 80
    
    Set I_oMenu = New cMenu
    Set I_oMenu.Parent = Me
    I_oMenu.Initialize
    
    Detail = True
    JoystickDead = 50
    Joystick = False
    Call LoadSettings
    WaveVolume = I_nWaveVolume
    MusicVolume = I_nMusicVolume
    Exit Sub
    
E_DirectX:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区小说| 欧美aaaaaa午夜精品| 成人黄色av电影| 国产精品色一区二区三区| 国产成人高清在线| 国产精品成人一区二区艾草| 99国产精品一区| 亚洲成人免费视频| 欧美一级日韩免费不卡| 国产乱码精品一区二区三区av| 2023国产精品| 色屁屁一区二区| 亚洲va欧美va人人爽| 欧美一级黄色录像| 成人短视频下载| 午夜视频在线观看一区二区| 欧美tk—视频vk| 成人黄色777网| 亚洲一区二区三区爽爽爽爽爽| 欧美日韩成人在线| 国内成人精品2018免费看| 亚洲国产精品ⅴa在线观看| 在线区一区二视频| 精品一区二区三区影院在线午夜| 国产欧美一区二区三区网站| 色爱区综合激月婷婷| 麻豆精品在线视频| 国产精品少妇自拍| 欧美高清视频在线高清观看mv色露露十八 | 亚洲欧美日韩一区二区| 欧美精品久久一区| 成人精品亚洲人成在线| 婷婷六月综合亚洲| 中文字幕在线不卡一区| 欧美一区二区大片| 色老汉一区二区三区| 国产中文字幕一区| 香蕉影视欧美成人| 日本一区二区电影| 日韩免费电影一区| 欧美亚洲自拍偷拍| 国产成人av资源| 青草国产精品久久久久久| 中文字幕精品三区| 欧美xingq一区二区| 在线亚洲高清视频| 不卡一区二区在线| 精品在线播放午夜| 天天综合色天天| 乱一区二区av| 亚洲黄色性网站| 中国色在线观看另类| 日韩限制级电影在线观看| 日本高清不卡视频| 成人免费毛片a| 国产一区二区中文字幕| 视频在线观看91| 一区二区三区四区五区视频在线观看| 精品91自产拍在线观看一区| 欧美性色欧美a在线播放| 成人av午夜电影| 国产99精品国产| 久久99国产精品麻豆| 免费精品99久久国产综合精品| 亚洲伦理在线精品| 国产精品久久久久久久第一福利 | 欧美一区二区精品在线| 欧美日韩一区二区在线视频| 99精品在线观看视频| 成人激情校园春色| 懂色一区二区三区免费观看| 极品美女销魂一区二区三区免费 | 亚洲免费资源在线播放| 中文字幕色av一区二区三区| 国产婷婷一区二区| 国产婷婷色一区二区三区在线| 亚洲精品一区二区精华| 日韩美一区二区三区| 日韩视频免费观看高清完整版在线观看| 亚洲一区二区三区四区中文字幕| 亚洲精品国产第一综合99久久 | 日本欧美一区二区三区乱码| 亚洲成人一区在线| 亚洲成人av一区| 五月综合激情日本mⅴ| 日韩精品亚洲专区| 免费高清在线一区| 狠狠狠色丁香婷婷综合久久五月| 精品一区二区成人精品| 韩国精品主播一区二区在线观看| 国产精品一区二区果冻传媒| 国产馆精品极品| 不卡免费追剧大全电视剧网站| 国产成人精品免费网站| av成人老司机| 欧洲色大大久久| 欧美日韩高清影院| 日韩欧美的一区二区| 久久久久高清精品| 最新国产成人在线观看| 亚洲国产精品一区二区久久| 日韩影院免费视频| 国产乱码字幕精品高清av | 亚洲欧洲在线观看av| 亚洲精品久久久蜜桃| 日本欧洲一区二区| 国产成人啪午夜精品网站男同| av一区二区不卡| 欧美夫妻性生活| 久久综合中文字幕| 亚洲免费在线播放| 日韩激情av在线| 国产91精品一区二区麻豆亚洲| av日韩在线网站| 91精品国产一区二区三区蜜臀| 久久久久久久久99精品| 亚洲欧洲综合另类| 捆绑调教美女网站视频一区| 成人手机在线视频| 在线不卡免费av| 国产精品女主播av| 国产在线精品一区二区三区不卡 | 亚洲欧美日韩国产综合在线 | 亚洲乱码国产乱码精品精小说| 日韩电影免费在线看| 91一区二区在线观看| 日韩欧美精品在线| 亚洲欧美综合网| 韩国欧美国产1区| 欧美午夜免费电影| 国产欧美一二三区| 日韩激情中文字幕| 色婷婷久久久久swag精品| 亚洲精品一区二区三区影院 | 91丨九色丨国产丨porny| 欧美一级在线观看| 亚洲精品第1页| 国产成人精品影院| 日韩免费视频线观看| 亚洲综合色网站| 暴力调教一区二区三区| 日韩欧美国产不卡| 亚洲国产综合人成综合网站| 成人黄页在线观看| 久久精品一二三| 久久疯狂做爰流白浆xx| 日本乱人伦一区| 国产精品乱人伦| 国产精品911| 精品剧情在线观看| 日本aⅴ精品一区二区三区| 色婷婷综合激情| 国产精品久久毛片av大全日韩| 激情综合亚洲精品| 色天天综合色天天久久| 九九九精品视频| 欧美精品视频www在线观看 | 一本色道综合亚洲| 1区2区3区国产精品| 懂色av一区二区三区免费观看 | 亚洲欧洲精品一区二区三区 | 日韩**一区毛片| 欧美特级限制片免费在线观看| 日韩一区在线看| 成人国产精品免费观看视频| 国产亚洲污的网站| 国产精品亚洲午夜一区二区三区| 精品理论电影在线| 国产自产v一区二区三区c| 精品人在线二区三区| 精品一区二区在线看| 久久一区二区三区四区| 国产乱子伦一区二区三区国色天香| 欧美电影免费观看高清完整版 | av一区二区三区四区| 国产精品夫妻自拍| 91丨九色porny丨蝌蚪| 亚洲欧美一区二区三区孕妇| 91美女片黄在线观看91美女| 亚洲一区二区综合| 欧美伦理影视网| 六月婷婷色综合| 久久久激情视频| 波多野结衣视频一区| 亚洲日本在线看| 在线精品视频免费播放| 午夜精品福利久久久| 91精品国产手机| 国产毛片精品视频| ...xxx性欧美| 欧美色图12p| 九一九一国产精品| 国产欧美va欧美不卡在线| 成人av电影免费在线播放| 亚洲影院在线观看| 日韩精品一区二区三区四区视频| 国产成人av影院| 亚洲综合色噜噜狠狠| 日韩精品一区二区三区视频| 成人黄色国产精品网站大全在线免费观看|