public Player(TechCraftGame game, PlayingState state, World world, Vector3 startPosition)
 {
     _game     = game;
     _world    = world;
     _position = startPosition;
     _state    = state;
 }
Esempio n. 2
0
 public WeaponManager(TechCraftGame game, World world, Player player)
 {
     _game         = game;
     _player       = player;
     _activeWeapon = Weapon.Bazooka;
     _world        = world;
 }
Esempio n. 3
0
 public WorldSettings(TechCraftGame game, Texture2D textureSet)
 {
     _textureSet = textureSet;
     _game       = game;
     //_vertexDeclaration = new VertexDeclaration(_game.GraphicsDevice, VertexPositionTextureShade.VertexElements);
     _vertexDeclaration = new VertexDeclaration(VertexPositionTextureShade.VertexElements);
 }
Esempio n. 4
0
 public IsometricCamera(TechCraftGame game, Vector3 position, float direction, float pitch)
     : base(game)
 {
     Position  = position;
     Direction = MathHelper.WrapAngle(direction);
     Pitch     = MathHelper.Clamp(pitch, -MathHelper.PiOver2, MathHelper.PiOver2);
     Rotation  = Quaternion.CreateFromYawPitchRoll(Direction, Pitch, 0.0F);
 }
Esempio n. 5
0
        public static Texture2D GenerateNoiseTexture(TechCraftGame game, int width, int height)
        {
            Random    random       = new Random();
            Texture2D noiseTexture = new Texture2D(game.GraphicsDevice, width, height);

            uint[] noiseData = new uint[width * height];
            for (int i = 0; i < width * height; i++)
            {
                if (random.Next(10) == 0)
                {
                    noiseData[i] = (uint)random.Next();
                }
                else
                {
                    noiseData[i] = Color.Black.PackedValue;
                }
            }
            noiseTexture.SetData(noiseData);
            return(noiseTexture);
        }
Esempio n. 6
0
 public TechEngineComponent(TechCraftGame game)
 {
     _game = game;
 }
Esempio n. 7
0
        // private Block _blockNone;

        public World(TechCraftGame game)
        {
            _game = game;
            //_blockNone = new Block(BlockType.None);
        }
 public ArcBallCameraController(TechCraftGame game) :
     base(game)
 {
 }
Esempio n. 9
0
 public ProjectileTrailParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
 public ProjectileManager(TechCraftGame game, Player player, World world)
 {
     _game   = game;
     _world  = world;
     _player = player;
 }
Esempio n. 11
0
 public FirstPersonCamera(TechCraftGame game)
     : base(game)
 {
 }
Esempio n. 12
0
 public IsometricCamera(TechCraftGame game)
     : base(game)
 {
 }
 public ArcBallCamera(TechCraftGame game)
     : base(game)
 {
     _rnd = new Random();
 }
Esempio n. 14
0
 public Controller(TechCraftGame game)
 {
     _game = game;
 }
 public SimpleCamera(TechCraftGame game)
     : base(game)
 {
 }
Esempio n. 16
0
 public BubbleParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
 public StateManager(TechCraftGame game)
     : base(game)
 {
 }
Esempio n. 18
0
 public Lighting(TechCraftGame game, World world)
 {
     _lighting = new byte[WorldSettings.MAPWIDTH, WorldSettings.MAPHEIGHT, WorldSettings.MAPLENGTH];
     _game     = game;
     _world    = world;
 }
Esempio n. 19
0
        }                                                             // nullable object.

        /// <summary>
        /// Initializes a new instance of the <see cref="BlockSelection"/> class.
        /// </summary>
        /// <param name="game">The game.</param>
        /// <param name="world">The world.</param>
        public BlockSelection(TechCraftGame game, World world)
        {
            _game  = game;
            _world = world;
        }
 public Manager(TechCraftGame game)
 {
     _game = game;
 }
Esempio n. 21
0
 public BillboardManager(TechCraftGame game)
     : base(game)
 {
 }
Esempio n. 22
0
 public ParticleManager(TechCraftGame game)
     : base(game)
 {
     _particleEmitters = new List <ParticleEmitter>();
     _particleSystems  = new List <ParticleSystem>();
 }
 public GameClient(TechCraftGame game)
 {
     _game  = game;
     _world = new World(_game);
     _world.Initialize();
 }
Esempio n. 24
0
 public Camera(TechCraftGame game)
 {
     _game = game;
 }
Esempio n. 25
0
 public CubeRenderer(TechCraftGame game)
 {
     _game       = game;
     _vertexList = new List <VertexPositionColor>();
     //_vertexDeclaration = new VertexDeclaration( VertexPositionColor.VertexElements);
 }
 public FirstPersonCameraController(TechCraftGame game)
     : base(game)
 {
 }
Esempio n. 27
0
 public SmokePlumeParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
Esempio n. 28
0
 public BlockPicker(TechCraftGame game, SpriteBatch spriteBatch)
     : base(game)
 {
     _spiteBatch = spriteBatch;
 }
 public ExplosionParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }