home *** CD-ROM | disk | FTP | other *** search
- class Item
- {
- var cod;
- var nome;
- var poder;
- var tipo;
- var valor;
- var equipado;
- function Item(cd, n, p, t, v)
- {
- this.cod = cd;
- this.nome = n;
- this.poder = p;
- this.tipo = t;
- this.valor = v;
- this.equipado = false;
- }
- function equip()
- {
- this.equipado = true;
- }
- function unEquip()
- {
- this.equipado = false;
- }
- function getCod()
- {
- return this.cod;
- }
- function getNome()
- {
- return this.nome;
- }
- function getPoder()
- {
- return this.poder;
- }
- function getValor()
- {
- return this.valor;
- }
- function getTipo()
- {
- return this.tipo;
- }
- function isEquiped()
- {
- return this.equipado;
- }
- }
-