Ejemplo n.º 1
0
        public Player(Game g, int pHealth, int pMana, Inventory pInventory, Spawn pSpawn)
        {
            id = 0;
            health = pHealth;
            mana = pMana;
            items = pInventory;
            position = pSpawn.getPosition();
            spawn = pSpawn;
            box = new BoundingBox();
            physics = new Physics();
            textures = new List<Texture2D>();
            moveSpeed = 100.0f;
            jumpSpeed = 50.0f;
            ui = new UserInterface(g);
            game = g;

            ui.Initialize();
        }
Ejemplo n.º 2
0
 // get/set methods
 public void setSpawn(Spawn newSpawn)
 {
     spawn = newSpawn;
 }