Difference between revisions of "Object:type (Português)"

m (translation update)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
Obtém o tipo do objeto como uma string.
+
Obtém o tipo do objeto como um string.
  
 
== Função ==
 
== Função ==
 
 
=== Sinopse ===
 
=== Sinopse ===
 
<source lang="lua">
 
<source lang="lua">
 
tipo = Object:type()
 
tipo = Object:type()
 
</source>
 
</source>
=== Argument0s ===
+
=== Argumentos ===
 
Nenhum.
 
Nenhum.
=== Returnos ===
+
=== Retorna ===
{{param|string|tipo|O tipo como uma string.}}
+
{{param|string (Português)|tipo|O tipo como um string.}}
 
 
 
== Exemplos ==
 
== Exemplos ==
 
+
=== Imprimir o tipo de um objeto ===
=== Imprime o tipo de um objeto ===
 
 
<source lang="lua">
 
<source lang="lua">
image = love.graphics.newImage("test.png")
+
imagem = love.graphics.newImage("teste.png")
print(image:type()) -- saída: Image
+
print(imagem:type()) -- retorna: Image
source = love.audio.newSource("test.ogg")
+
source = love.audio.newSource("teste.ogg")
print(source:type()) -- saída: Source
+
print(source:type()) -- retorna: Source
 
</source>
 
</source>
 
 
== Veja Também ==
 
== Veja Também ==
 
* [[parent::Object (Português)]]
 
* [[parent::Object (Português)]]
 
+
{{#set:Description=Obtém o tipo do objeto como um string.}}
{{#set:Description=Obtém o tipo do objeto como uma string.}}
+
{{#set:Since=000}}
 
[[Category:Functions]]
 
[[Category:Functions]]
== Other Languages ==
+
== Outros Idiomas ==
{{i18n|Object:type (Português)}}
+
{{i18n|Object:type}}

Latest revision as of 00:46, 6 March 2014

Obtém o tipo do objeto como um string.

Função

Sinopse

tipo = Object:type()

Argumentos

Nenhum.

Retorna

string (Português) tipo
O tipo como um string.

Exemplos

Imprimir o tipo de um objeto

imagem = love.graphics.newImage("teste.png")
print(imagem:type()) -- retorna: Image
source = love.audio.newSource("teste.ogg")
print(source:type()) -- retorna: Source

Veja Também

Outros Idiomas