コード例 #1
0
ファイル: Player.cs プロジェクト: fiahil/Zappy
 public Player(SpriteManager cm, int idTeam)
 {
     this.st = States.IDLE;
     this.pos = new Point(0, 0);
     this.dir = Direction.NORTH;
     this.player = new Sprite[4];
     this.stake = new Sprite[4];
     this.slvl = new Sprite[8];
     this.sfork = new Sprite[4];
     this.sbroadcast = new Sprite[2];
     this.Load(cm, idTeam);
     this.broadcast = null;
     this.broacastTimer = TimeSpan.Zero;
     this.deadTimer = TimeSpan.Zero;
     this.dead = false;
     this.lvl = 1;
     this.iv = new Inventory();
     this.team = "Poney";
 }
コード例 #2
0
ファイル: Elt.cs プロジェクト: fiahil/Zappy
        public Elt(SpriteBatch sb, Point p)
        {
            this.tiles = new Sprite[3];
            this.nourriture = new Sprite[2];
            this.linemate = new Sprite[2];
            this.deraumere = new Sprite[2];
            this.sibur = new Sprite[2];
            this.mendiane = new Sprite[2];
            this.phiras = new Sprite[2];
            this.thystame = new Sprite[2];

            this.sb = sb;
            this.p = p;
            this.off = rd.Next(3);

            this.Iv = new Inventory();

            this.selected = false;
        }
コード例 #3
0
ファイル: Player.cs プロジェクト: fiahil/Zappy
 public Player(SpriteManager cm, int id, int x, int y, Direction dir, int lvl, string team, int idTeam)
 {
     this.st = States.IDLE;
     this.id = id;
     this.pos = new Point(x, y);
     this.dir = dir;
     this.player = new Sprite[4];
     this.stake = new Sprite[4];
     this.slvl = new Sprite[8];
     this.sfork = new Sprite[4];
     this.sbroadcast = new Sprite[2];
     this.team = team;
     this.lvl = (lvl < 1 ? 1 : lvl);
     this.Load(cm, idTeam);
     this.deadTimer = TimeSpan.Zero;
     this.dead = false;
     this.broadcast = null;
     this.broacastTimer = TimeSpan.Zero;
     this.iv = new Inventory();
 }