public void OnConnect() { subBotHandler = new SubBots.SubBotHandler(); this.room = new Room(this); subBotHandler.AddSubBot(room, this); subBotHandler.AddSubBot(new PlayerPhysics(this), this); subBotHandler.AddSubBot(new Commands(this), this); subBotHandler.AddSubBot(new Zombies(this), this); subBotHandler.AddSubBot(new WorldEdit(this), this); subBotHandler.AddSubBot(new Dig(this), this); subBotHandler.AddSubBot(new MazeGenerator(this), this); subBotHandler.AddSubBot(new Redstone(this), this); }
public PhysicsPlayer(Bot bot, int ID, string name, int frame, float xPos, float yPos, bool isGod, bool isMod, bool bla, int coins, bool purple, bool isFriend, int level) : base(null, 16) { //this.Ding = Player_Ding; //this.Crown = Player_Crown; //this.CrownSilver = Player_CrownSilver; //this.Aura = Player_Aura; //this.ModAura = Player_ModAura; //this.FireAura = Player_FireAura; //this.LevitationEffect = Player_LevitationEffect; //this.ding = new this.Ding(); //this.crown = new this.Crown().bitmapData; //this.crown_silver = new this.CrownSilver().bitmapData; //this.aura = new this.Aura().bitmapData; //this.modaura = new this.ModAura().bitmapData; ///this.fireAura = new this.FireAura().bitmapData; //this.invulnerableAura = AnimationManager.animProtection; //this.levitationAnimaitonBitmapData = new this.LevitationEffect().bitmapData; //this.clubaura = AnimationManager.animClubAura; this.bot = bot; this.room = bot.room; this.rect2 = new Rectangle(0, 0, 16, 26); //this.fireAnimation = new BlSprite(this.fireAura, 0, 0, 26, 26, 6); //this.protectionAnimation = new BlSprite(this.invulnerableAura, 0, 0, 26, 26, 24); //this.levitationAnimation = new BlSprite(this.levitationAnimaitonBitmapData, 0, 0, 26, 26, 32); this.queue = new Queue<int>(Config.physics_queue_length); this.lastJump = new DateTime(); this.lastPortal = new Point(); this.that = this as SynchronizedObject; this.modrect = new Rectangle(0, 0, 64, 64); this.clubrect = new Rectangle(0, 0, 64, 64); //this.touchpotions = {}; this._currentThrust = this._maxThrust; //super(ItemManager.smiliesBMD); //this.state = param5; //this.connection = param4; //this.world = param1; //this.hitmap = param1; this.x = 16; this.y = 16; this.isme = false; this.name = name; //this.chat = new Chat(param2.indexOf(" ") != -1 ? ("") : (param2)); size = 16; width = 16; height = 16; return; }
public Room_Form(Bot bot, Room room) : base(bot) { InitializeComponent(); this.room = room; }