Exemplo n.º 1
0
    def __init__(self, cppthing, **kw):
        self.base_init(cppthing, kw)
        
        # How big the tree is #
        #set_kw(self,kw,"size",randint(1, 30))
        set_kw(self,kw,"height",10)
        
        # Just a name for the client #
        set_kw(self,kw,"sizename",size_to_name(self.height))
        
        # The number of fruit #
        set_kw(self,kw,"fruits",init_fruits)

	# The type of fruit #
        set_kw(self,kw,"fruitname","Seed")

        # Chance of fruit #
        set_kw(self,kw,"fruitchance",fruitchance)
Exemplo n.º 2
0
    def __init__(self, cppthing, **kw):
        self.base_init(cppthing, kw)
        
        # How big the tree is #
        #set_kw(self,kw,"size",randint(1, 30))
        set_kw(self,kw,"height",10)
        
        # Just a name for the client #
        set_kw(self,kw,"sizename",size_to_name(self.height))
        
        # The number of fruit #
        set_kw(self,kw,"fruits",init_fruits)

	# The type of fruit #
        set_kw(self,kw,"fruitname","Seed")

        # Chance of fruit #
        set_kw(self,kw,"fruitchance",fruitchance)
Exemplo n.º 3
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"mass",1.0)
Exemplo n.º 4
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self, kw, "fruitname", "acorn")
Exemplo n.º 5
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self, kw, "rain", 1.0)
     set_kw(self, kw, "snow", 0.0)
Exemplo n.º 6
0
Arquivo: Sty.py Projeto: 9cat/cyphesis
 def __init__(self, **kw):
 	self.base_init(kw)
     set_kw(self,kw,"width",4.0)
     set_kw(self,kw,"length",4.0)
Exemplo n.º 7
0
 def __init__(self, **kw):
     self.base_init(kw)
     set_kw(self, kw, "width", 4.0)
     set_kw(self, kw, "length", 4.0)
Exemplo n.º 8
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"alcohol",0)
     set_kw(self,kw,"mass",0.2)
Exemplo n.º 9
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self,kw,"fruitname","apple")
     set_kw(self,kw,"fruitchance", 15)
     set_kw(self,kw,"init_fruits", 3)
Exemplo n.º 10
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"alcohol",0)
     set_kw(self,kw,"mass",0.2)
Exemplo n.º 11
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self, kw, "mass", 5.0)
     self.maxmass = 100.0
Exemplo n.º 12
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"mass",100.0)
     self.maxmass=150.0
Exemplo n.º 13
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self,kw,"fruitname","apple")
     set_kw(self,kw,"fruitchance", 15)
     set_kw(self,kw,"init_fruits", 3)
Exemplo n.º 14
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self, kw, "rain", 1.0)
     set_kw(self, kw, "snow", 0.0)
Exemplo n.º 15
0
 def __init__(self, **kw):
     self.base_init(kw)
     set_kw(self,kw,"mass",5)
Exemplo n.º 16
0
Arquivo: Oak.py Projeto: 9cat/cyphesis
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self,kw,"fruitname","acorn")