Example #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)
Example #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)
Example #3
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"mass",1.0)
Example #4
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self, kw, "fruitname", "acorn")
Example #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)
Example #6
0
File: Sty.py Project: 9cat/cyphesis
 def __init__(self, **kw):
 	self.base_init(kw)
     set_kw(self,kw,"width",4.0)
     set_kw(self,kw,"length",4.0)
Example #7
0
 def __init__(self, **kw):
     self.base_init(kw)
     set_kw(self, kw, "width", 4.0)
     set_kw(self, kw, "length", 4.0)
Example #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)
Example #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)
Example #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)
Example #11
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self, kw, "mass", 5.0)
     self.maxmass = 100.0
Example #12
0
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     set_kw(self,kw,"mass",100.0)
     self.maxmass=150.0
Example #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)
Example #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)
Example #15
0
 def __init__(self, **kw):
     self.base_init(kw)
     set_kw(self,kw,"mass",5)
Example #16
0
File: Oak.py Project: 9cat/cyphesis
 def __init__(self, cppthing, **kw):
     self.base_init(cppthing, kw)
     # The type of fruit #
     set_kw(self,kw,"fruitname","acorn")