Singleton.cs

(开头部分) 27KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading;

namespace Tank_11_14
{
    class Singleton  //定义单态.........
    {

        private P1Tank p1Tank;  //定义坦克字段
        
        public P1Tank P1Tank
        {
            get { return p1Tank; }
            set { p1Tank = value; }
        }
        private P2Tank p2Tank;

        internal P2Tank P2Tank
        {
            get { return p2Tank; }
            set { p2Tank = value; }
        }
        private Symbol symbol;

        internal Symbol Symbol
        {
            get { return symbol; }
            set { symbol = value; }
        }

        public int count;
        private List<Enemy> enemy = new List<Enemy>();//用List存放坦克的类型
        private List<myMissile> myMissile = new List<myMissile>();  //实例化我方对象
        private List<EnemyMissile> enemyMissile = new List<EnemyMissile>();  //实例化敌人的子弹的对象
        private List<Blast> blast=new List<Blast>();//实例化爆炸
        private List<Born> born = new List<Born>();//实例化出身类对象
        private List<Equripment> equripment = new List<Equripment>();//实例化装备对象
        private List<Wall> wall=new List<Wall>();
        private List<Water> water = new List<Water>();
        private List<Steel> steel = new List<Steel>();
        private List<Grass> grass = new List<Grass>();
        //private List<Symbol> symbol = new List<Symbol>();
        private List<Over> over = new List<Over>();
        public Singleton()
        {

        }

        public void CreateThread()  //创建一个方法,使用多线程
        {
            Thread hitThread = new Thread(new ThreadStart(HitCheck));
            hitThread.Start();
            count = enemy.Count;
        }

        private static Singleton instance;
后面还有 696 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。