Added getter methods for some existing attributes
This was SVN commit r7660.
This commit is contained in:
parent
8f48d0f007
commit
913c1b1946
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user