1
0
forked from 0ad/0ad

Added getter methods for some existing attributes

This was SVN commit r7660.
This commit is contained in:
WhiteTreePaladin 2010-07-02 02:44:25 +00:00
parent 8f48d0f007
commit 913c1b1946

View File

@ -29,11 +29,21 @@ Player.prototype.SetName = function(name)
this.name = name;
};
Player.prototype.GetName = function()
{
return this.name;
};
Player.prototype.SetCiv = function(civcode)
{
this.civ = civcode;
};
Player.prototype.GetCiv = function()
{
return this.civ;
};
Player.prototype.SetColour = function(r, g, b)
{
this.colour = { "r": r/255.0, "g": g/255.0, "b": b/255.0, "a": 1.0 };
@ -44,7 +54,6 @@ Player.prototype.GetColour = function()
return this.colour;
};
Player.prototype.GetPopulationCount = function()
{
return this.popCount;