Advertisement
StefanJanssen

player.js

Mar 20th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict'
  2. var Player = function()
  3. {
  4.     this.name = "";
  5. };
  6.  
  7. Player.prototype.getName = function()
  8. {
  9.     return this.name;
  10. };
  11.  
  12. Player.prototype.setName = function(_name)
  13. {
  14.     this.name = _name;
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement